diff --git a/addons/base/static/qweb/qweb-test.js.html b/addons/base/static/qweb/qweb-test.js.html index 3dc9e0a7ff5..db773c279df 100644 --- a/addons/base/static/qweb/qweb-test.js.html +++ b/addons/base/static/qweb/qweb-test.js.html @@ -33,6 +33,12 @@ }); test("Formatted escaped data output", function () { equals("ok", render('escf-noformat-literal', {}), "Render a literal string"); + equals("ok", render('escf-simpleformat-variable', {value: 'ok'}), + "Only render an interpolated variable"); + equals("[ok]", render('escf-format-variable', {value: 'ok'}), + "Actually formatted variable"); + equals('[<ok>]', render('escf-format-variable-with-escapes', {value: ''}), + "Render a formatted string with data to escape"); }); }); diff --git a/addons/base/static/qweb/qweb-test.xml b/addons/base/static/qweb/qweb-test.xml index f3ac3e8f5ec..8eed21b955a 100644 --- a/addons/base/static/qweb/qweb-test.xml +++ b/addons/base/static/qweb/qweb-test.xml @@ -1,4 +1,5 @@ + @@ -9,8 +10,17 @@ - + + + + + + + + + +