diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-10-22 17:57:08 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-10-22 17:57:08 +0200 |
| commit | 9dbb7d199cfe085ea5e3a4980de2bd766953ab93 (patch) | |
| tree | 6ed48459069117f9f2cbd0fffa771c907592bb38 /addons/web/static/tests/helpers/test_utils.js | |
| parent | a8cec47c930c1d3b60f0e5c5788106cc30dc1a0b (diff) | |
| parent | b81c2bce846c94b5695d680ebbc30f1cfe51e614 (diff) | |
[MERGE] forward port branch 12.0 up to b81c2bce846
Diffstat (limited to 'addons/web/static/tests/helpers/test_utils.js')
| -rw-r--r-- | addons/web/static/tests/helpers/test_utils.js | 6 |
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 b87ca9963f4..7c00e8ba929 100644 --- a/addons/web/static/tests/helpers/test_utils.js +++ b/addons/web/static/tests/helpers/test_utils.js @@ -257,6 +257,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. |
