summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/helpers/test_utils_mock.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/tests/helpers/test_utils_mock.js')
-rw-r--r--addons/web/static/tests/helpers/test_utils_mock.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web/static/tests/helpers/test_utils_mock.js b/addons/web/static/tests/helpers/test_utils_mock.js
index 3eaaae0a46f..27dbaeeaa44 100644
--- a/addons/web/static/tests/helpers/test_utils_mock.js
+++ b/addons/web/static/tests/helpers/test_utils_mock.js
@@ -69,6 +69,7 @@ function removeSrcAttribute(el, widget) {
if (widget) {
widget._rpc({ route: src });
}
+ $(node).trigger('load');
}
}
}
@@ -228,6 +229,7 @@ function addMockEnvironment(widget, params) {
}
$('body').off('DOMNodeInserted.removeSRC');
+ $('body').removeClass('debug');
$('.blockUI').remove();
widgetDestroy.call(this);