summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/helpers/test_utils.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-10-16 17:53:26 +0200
committerChristophe Simonis <chs@odoo.com>2018-10-16 17:53:26 +0200
commit41bf8ce6d900cd247c4adf33cc75e3d018c89ffb (patch)
treea248bfe02d5b1e1495ad274bbc3c2b33f87d0b82 /addons/web/static/tests/helpers/test_utils.js
parenta9f11fb4772f2862ca5806baee38cf6a043b5143 (diff)
parentb29b545fe8464610ce04ac8be11e0356962d10d9 (diff)
[MERGE] forward port branch 11.0 up to b29b545fe84
Diffstat (limited to 'addons/web/static/tests/helpers/test_utils.js')
-rw-r--r--addons/web/static/tests/helpers/test_utils.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/web/static/tests/helpers/test_utils.js b/addons/web/static/tests/helpers/test_utils.js
index b013c05a71e..10fe2fd0c54 100644
--- a/addons/web/static/tests/helpers/test_utils.js
+++ b/addons/web/static/tests/helpers/test_utils.js
@@ -215,6 +215,12 @@ function createAsyncView(params) {
controlPanel.appendTo($web_client);
var $content = $('<div>').addClass('o_content').appendTo($web_client);
+ if (params.interceptsPropagate) {
+ _.each(params.interceptsPropagate, function (cb, name) {
+ intercept(widget, name, cb, true);
+ });
+ }
+
return view.getController(widget).then(function (view) {
// override the view's 'destroy' so that it calls 'destroy' on the widget
// instead, as the widget is the parent of the view and the mockServer.