diff options
| author | Christophe Matthieu <chm@odoo.com> | 2016-04-21 09:31:32 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2016-06-14 09:46:25 +0200 |
| commit | 956bb2b6e995ebf1aad939f2c946878ee469236f (patch) | |
| tree | c256eb09553282e1caab119f2391bd06bd2975bc /addons/web/static/lib/qweb/qweb-test-attributes.xml | |
| parent | 7ede9bcb2de9d52994b3a6fcb84edc3f81d60284 (diff) | |
[IMP] base ir.qweb: add and update tests for the new ir.qweb
Diffstat (limited to 'addons/web/static/lib/qweb/qweb-test-attributes.xml')
| -rw-r--r-- | addons/web/static/lib/qweb/qweb-test-attributes.xml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/addons/web/static/lib/qweb/qweb-test-attributes.xml b/addons/web/static/lib/qweb/qweb-test-attributes.xml index bf6070fed08..e16ef8a3f0e 100644 --- a/addons/web/static/lib/qweb/qweb-test-attributes.xml +++ b/addons/web/static/lib/qweb/qweb-test-attributes.xml @@ -1,4 +1,14 @@ <templates> + <t t-name="static"> + <div foo="a" bar="b" baz="c"/> + </t> + <result id="static"><![CDATA[<div foo="a" bar="b" baz="c"></div>]]></result> + + <t t-name="static-void"> + <img src="/test.jpg"/> + </t> + <result id="static-void"><![CDATA[<img src="/test.jpg"/>]]></result> + <t t-name="fixed-literal"> <div t-att-foo="'bar'"/> </t> @@ -55,4 +65,19 @@ <result id="format-multiple"><![CDATA[ <div foo="a 0 is 1 of 2 ]"></div> ]]></result> + + <t t-name="various-escapes"> + <div foo="<foo" + t-att-bar="bar" + t-attf-baz="<{{baz}}>" + t-att="qux"/> + </t> + <params id="various-escapes"><![CDATA[{ + "bar": "<bar>", + "baz": "\"<baz>\"", + "qux": {"qux": "<>"} + }]]></params> + <result id="various-escapes"><![CDATA[ + <div foo="<foo" bar="<bar>" baz="<"<baz>">" qux="<>"></div> + ]]></result> </templates> |
