summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/helpers/test_utils.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2017-11-16 13:06:23 +0100
committerAaron Bohy <aab@odoo.com>2017-11-23 11:00:21 +0100
commit0670a635ac8d20b07cecc198cde14641f9db6f54 (patch)
tree6daa301e239824117cac7c132b1e164db8404464 /addons/web/static/tests/helpers/test_utils.js
parentc36209df655f63e23ba2ddf6a588f4f67e49b444 (diff)
[REF] base,web: use correct Widget in settings JS tests
... instead of hacking test_utils.
Diffstat (limited to 'addons/web/static/tests/helpers/test_utils.js')
-rw-r--r--addons/web/static/tests/helpers/test_utils.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/addons/web/static/tests/helpers/test_utils.js b/addons/web/static/tests/helpers/test_utils.js
index 9ab53186c1e..818c1c45fb8 100644
--- a/addons/web/static/tests/helpers/test_utils.js
+++ b/addons/web/static/tests/helpers/test_utils.js
@@ -145,13 +145,7 @@ function createAsyncView(params) {
_.extend(viewOptions, params.viewOptions);
-
- if (viewInfo.arch.attrs.js_class) {
- var jsClsssView = view_registry.get(viewInfo.arch.attrs.js_class);
- var view = new jsClsssView(viewInfo, viewOptions);
- } else{
- var view = new params.View(viewInfo, viewOptions);
- }
+ var view = new params.View(viewInfo, viewOptions);
// make sure images do not trigger a GET on the server
$target.on('DOMNodeInserted.removeSRC', function () {