diff options
| author | Xavier Morel <xmo@openerp.com> | 2014-09-09 09:17:32 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2014-10-06 19:13:43 +0200 |
| commit | 494dcbd0e3ee4370e3c4a5ac6635acf86f0d7481 (patch) | |
| tree | b0b84286216ee50d8f4480292435cf5afc64be22 /addons/web/static/lib/qweb/qweb-test-output.xml | |
| parent | bed6b01c53b520591e6f693dbb5c25cc5b772bbc (diff) | |
[IMP] qweb doc, tests
* document qweb based (mostly) on JS version
* convert JS qweb tests to (mostly) language-independent XML so they can be
used for JS and Python implementations
* add some more tests (e.g. precedence between t-value and body in t-set)
* remove ``t-import``
* fix parity in foreach(dict) (and rename some variables to make array and
object versions more similar)
Diffstat (limited to 'addons/web/static/lib/qweb/qweb-test-output.xml')
| -rw-r--r-- | addons/web/static/lib/qweb/qweb-test-output.xml | 46 |
1 files changed, 19 insertions, 27 deletions
diff --git a/addons/web/static/lib/qweb/qweb-test-output.xml b/addons/web/static/lib/qweb/qweb-test-output.xml index 8725bb00a8f..f91196a86cf 100644 --- a/addons/web/static/lib/qweb/qweb-test-output.xml +++ b/addons/web/static/lib/qweb/qweb-test-output.xml @@ -3,44 +3,36 @@ <t t-name="esc-literal"> <t t-esc="'ok'"/> </t> + <result id="esc-literal">ok</result> + <t t-name="esc-variable"> - <t t-esc="ok"/> + <t t-esc="var"/> </t> + <params id="esc-variable">{"var": "ok"}</params> + <result id="esc-variable">ok</result> + <t t-name="esc-toescape"> - <t t-esc="ok"/> - </t> - <!-- formatted esc --> - <t t-name="escf-literal"> - <t t-escf="ok"/> - </t> - <t t-name="escf-variable"> - <t t-escf="{{ ok }}"/> - </t> - <t t-name="escf-toescape"> - <t t-escf="{{ ok }}"/> - </t> - <t t-name="escf-mix"> - <t t-escf="[{{ ok }}]"/> + <t t-esc="var"/> </t> + <params id="esc-toescape"><![CDATA[{"var": "<ok>"}]]></params> + <result id="esc-toescape"><![CDATA[<ok>]]></result> + <!-- raw, evaluates and returns @t-raw directly (no escaping) --> <t t-name="raw-literal"> <t t-raw="'ok'"/> </t> + <result id="raw-literal">ok</result> + <t t-name="raw-variable"> - <t t-raw="ok"/> + <t t-raw="var"/> </t> + <params id="raw-variable">{"var": "ok"}</params> + <result id="raw-variable">ok</result> + <t t-name="raw-notescaped"> - <t t-raw="ok"/> - </t> - <!-- formatted raw --> - <t t-name="rawf-literal"> - <t t-rawf="ok"/> - </t> - <t t-name="rawf-variable"> - <t t-rawf="{{ ok }}"/> - </t> - <t t-name="rawf-notescaped"> - <t t-rawf="{{ ok }}"/> + <t t-raw="var"/> </t> + <params id="raw-notescaped"><![CDATA[{"var": "<ok>"}]]></params> + <result id="raw-notescaped"><![CDATA[<ok>]]></result> </templates> |
