summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/helpers/test_utils.js
diff options
context:
space:
mode:
authorVincent Schippefilt <vsc@odoo.com>2018-04-12 16:38:14 +0200
committerVincent Schippefilt <vsc@odoo.com>2018-04-16 09:35:33 +0200
commit65d8a082df02d72a37c5e9d06539a69adab04c4a (patch)
tree2a3781ecc09adce9cf796a2f7a1faef568ca3e75 /addons/web/static/tests/helpers/test_utils.js
parent9b2b5eddd4d6feac3926da8242d0b063bb26c9ed (diff)
[FIX] web: fix keyboard related crash in client actions
Diffstat (limited to 'addons/web/static/tests/helpers/test_utils.js')
-rw-r--r--addons/web/static/tests/helpers/test_utils.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/addons/web/static/tests/helpers/test_utils.js b/addons/web/static/tests/helpers/test_utils.js
index c2d82775e70..f993a2f9250 100644
--- a/addons/web/static/tests/helpers/test_utils.js
+++ b/addons/web/static/tests/helpers/test_utils.js
@@ -77,6 +77,7 @@ var createActionManager = function (params) {
var $target = $('#qunit-fixture');
if (params.debug) {
$target = $('body');
+ $target.addClass('debug');
}
var widget = new Widget();
@@ -733,17 +734,17 @@ function patch (target, props) {
* In Phantomjs, there is a crash when calling window.getSelection
* in order for the tests to work, for the specific test that uses it, replace
* the default window.getSelection by a mock
- *
+ *
* usage:
* QUnit.test('...',function(done){
* var unpatchWindowGetSelection = testUtils.patchWindowGetSelection();
- *
+ *
* // do something that needs to use window.getSelection()
* assert.strictEqual(....);
- *
+ *
* // restore the original function
* unpatchWindowGetSelection();
- *
+ *
* // finish the test
* done();
* })