diff options
| author | Aaron Bohy <aab@odoo.com> | 2018-06-18 14:37:34 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2018-06-21 13:55:10 +0200 |
| commit | ffe9bb501bfeecb55f6af24e529c00b4c8acffc6 (patch) | |
| tree | 1bac22ac963a2f3e80751a7c2eb8aecf2954c3ea | |
| parent | cf3cc98f1c70315600709a758b9982278fe33244 (diff) | |
[FIX] mail: test utils: mock is_odoo_focused
In the mocked version of the longpolling bus used in tests, the
is_odoo_focused function should be defined to prevent crashes when
we simulate incoming messages.
| -rw-r--r-- | addons/mail/static/tests/helpers/test_utils.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/mail/static/tests/helpers/test_utils.js b/addons/mail/static/tests/helpers/test_utils.js index ccfc7d4bfe5..7132be01357 100644 --- a/addons/mail/static/tests/helpers/test_utils.js +++ b/addons/mail/static/tests/helpers/test_utils.js @@ -37,6 +37,9 @@ function createBusService(bus) { * Do nothing */ start_polling: function () {}, + is_odoo_focused: function () { + return true; + }, }); }, |
