summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorVincent Schippefilt <vsc@odoo.com>2018-02-15 10:34:49 +0100
committerAlexandre Kühn <aku@odoo.com>2018-02-20 13:31:22 +0100
commit275910e38c3a4b45c2d227597a9e18eb106a3d9e (patch)
treed3a22ed7d2442ed3b22dd35889029a28e48549af /addons/web/static/src/js/views/basic
parent9f2ec57a7e2dc8eb8eb87905ff50ab04e8bd8ddd (diff)
[FIX] tests : avoid phantomjs to crash because of window.getSelection
Before this commit, phantomjs was crashing when some code manipulates window.getSelection (such as the composer input in discuss or in the chatter). This commit lets us mock window.getSelection in tests that need this function in order to work properly. Another benefit of this commit is the possibility to simulate the state of window.getSelection in our tests, which enables tests on the composer that were not possible before (e.g. making sure that mentions and emojis are correctly rendered in the input, after the user clicked on them in the dropup menu or the bottom bar.
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions