summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/field_utils.js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-02-24 11:53:28 +0100
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commit064d7f462122bd5193e094d8b03c132cb43d14a2 (patch)
treec91d7b68d2deb5267f1436539ce727703a5af9a0 /addons/web/static/src/js/fields/field_utils.js
parent7c41254d8f5474deb755fbd5ff9ce6f40576fa5e (diff)
[FIX] web: make focus tests works if window has not the focus
Until now, those tests failed if the window did not have the focus. We solve the issue with 2 different fixes: * instead of checking that the focus property is set, we can check the activeElement instead, it seems to work. * instead of calling the focus method, in some tests, we can trigger a * 'focusin' event. I don't know why this works, but it does. Note that this might make the tests work in phantomjs
Diffstat (limited to 'addons/web/static/src/js/fields/field_utils.js')
0 files changed, 0 insertions, 0 deletions