diff options
| author | Aaron Bohy <aab@odoo.com> | 2018-02-08 14:43:14 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2018-02-12 11:13:42 +0100 |
| commit | 5c67abd0d306f446af9df59cb6bca2428f17f7a9 (patch) | |
| tree | b31d3c4cabe945286001815f3d29c64473d263be /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 107b82f6e13840c218706d55e434071fb2f2ed28 (diff) | |
[REF] web: tests: move calls to removeSrcAttribute
In the tests environment, we listen to the 'DOMNodeInserted' event
to remove the src attribute of img and iframe nodes as soon as they
are inserted into the DOM, so that they don't perform RPCs.
However, this listener was bound in the create(Async)View, and
createActionManager helpers only. This rev. moves it to the
addMockEnvironment helper which is more global, and basically used
by all tests.
Moreover, we now listen to the 'DOMNodeInserted' event on the body,
instead of on the widget, as it may happen that some content is
inserted into the DOM outside the widget itself (e.g. dialogs are
appended to the body).
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
