summaryrefslogtreecommitdiff
path: root/addons/web_editor
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2017-10-27 11:32:10 +0200
committerGéry Debongnie <ged@odoo.com>2017-11-10 10:24:42 +0100
commit9bc5009481de188b72da21bd7a0d246a60a070ef (patch)
tree1522af8ae79a362728cd293b641c399f59b7d280 /addons/web_editor
parentb4debf7e1b19710ef3dcc39448d08a698b5657b0 (diff)
[FIX] web(_editor): enable mobile tests
This rev. introduces a new test suite meant to test the webclient components on mobile devices. The key 'config.device.isMobile' is forced to true in this test suite, so that mobile specific JS files are properly executed, which isn't the case in the classic JS test suite (setting isMobile to true in the test definition is too late, as the JS files are already processed). For now, this new test suite contains a single test, which was skipped until this rev. as it couldn't be executed in the classical JS test suite. Both suites are executed at each build of the runbot, and they can be manually executed from the webclient as well (via the debug manager).
Diffstat (limited to 'addons/web_editor')
-rw-r--r--addons/web_editor/views/editor.xml8
1 files changed, 6 insertions, 2 deletions
diff --git a/addons/web_editor/views/editor.xml b/addons/web_editor/views/editor.xml
index 8b7b51944a5..4bfe84887d0 100644
--- a/addons/web_editor/views/editor.xml
+++ b/addons/web_editor/views/editor.xml
@@ -114,10 +114,14 @@
<t t-call-assets="web_editor.assets_editor" t-css="false"/>
</xpath>
</template>
-<template id="qunit_suite" inherit_id="web.qunit_suite">
- <xpath expr="//t[@t-call-assets='web.assets_backend'][@t-css='false']" position="after">
+<template id="js_tests_assets" inherit_id="web.js_tests_assets">
+ <xpath expr="." position="inside">
<t t-call-assets="web_editor.summernote" t-css="false"/>
<t t-call-assets="web_editor.assets_editor" t-css="false"/>
+ </xpath>
+</template>
+<template id="qunit_suite" inherit_id="web.qunit_suite">
+ <xpath expr="." position="inside">
<script type="text/javascript" src="/web_editor/static/tests/web_editor_tests.js"></script>
</xpath>
</template>