summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2018-02-08 15:13:28 +0100
committerAaron Bohy <aab@odoo.com>2018-02-12 11:13:42 +0100
commitc265e47a6335e10467b748ff4a37808ed53263ca (patch)
tree6a9262cd69123949f7d66c8e73a65e6f1437e203 /addons/web/static/src/js/views/basic/basic_model.js
parent5c67abd0d306f446af9df59cb6bca2428f17f7a9 (diff)
[FIX] web,*: tests: remove src attr from img nodes
In the tests environmnent, we don't want img and iframe nodes to perform RPCs when they are inserted into the DOM. For img nodes, we prefixed the src attribute by '#test: ' as soon as they were inserted into the DOM. Unfortunately, this didn't work as expected: an RPC was done to fetch route '/web/tests?' (i.e. the tests page), because everything after '#' in the url isn't sent to the server. This rev. completely removes the src attribute of img nodes, and set a 'data-src' attribute with the original src attribute's value, so that it can still be checked in the tests. Tests using this attribute have been adapted accordingly.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions