From 8a84b5be56aa63106ac1be4db1b9886013b38f70 Mon Sep 17 00:00:00 2001 From: Bruno Boi Date: Mon, 8 Nov 2021 10:51:19 +0100 Subject: [PATCH] [IMP] qweb/attributes: uncomment two tests - textarea with t-att-value - select with t-att-value --- .../__snapshots__/attributes.test.ts.snap | 30 ++++++++++++++++ tests/qweb/attributes.test.ts | 36 +++++++++---------- 2 files changed, 48 insertions(+), 18 deletions(-) diff --git a/tests/qweb/__snapshots__/attributes.test.ts.snap b/tests/qweb/__snapshots__/attributes.test.ts.snap index 343636c1..6432221a 100644 --- a/tests/qweb/__snapshots__/attributes.test.ts.snap +++ b/tests/qweb/__snapshots__/attributes.test.ts.snap @@ -667,6 +667,36 @@ exports[`special cases for some specific html attributes/properties input with t }" `; +exports[`special cases for some specific html attributes/properties select with t-att-value 1`] = ` +"function anonymous(bdom, helpers +) { + let { text, createBlock, list, multi, html, toggler, component } = bdom; + let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; + + let block1 = createBlock(\`\`); + + return function template(ctx, node, key = \\"\\") { + let d1 = ctx['value']; + return block1([d1]); + } +}" +`; + +exports[`special cases for some specific html attributes/properties textarea with t-att-value 1`] = ` +"function anonymous(bdom, helpers +) { + let { text, createBlock, list, multi, html, toggler, component } = bdom; + let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; + + let block1 = createBlock(\`