From ffe9bb501bfeecb55f6af24e529c00b4c8acffc6 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Mon, 18 Jun 2018 14:37:34 +0200 Subject: [PATCH] [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. --- addons/mail/static/tests/helpers/test_utils.js | 3 +++ 1 file changed, 3 insertions(+) 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; + }, }); },