diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-23 11:54:06 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-23 11:54:06 +0200 |
commit | d9d3b687b7c892b400e781dd5c57897efd7173aa (patch) | |
tree | 835dacc8cb3df7b05d4b62f4c551d8ad9f791371 /testing/marionette/test_error.js | |
parent | 1ea8529cfb0a246d09daf1ec742d063c08cf1899 (diff) | |
download | UXP-d9d3b687b7c892b400e781dd5c57897efd7173aa.tar UXP-d9d3b687b7c892b400e781dd5c57897efd7173aa.tar.gz UXP-d9d3b687b7c892b400e781dd5c57897efd7173aa.tar.lz UXP-d9d3b687b7c892b400e781dd5c57897efd7173aa.tar.xz UXP-d9d3b687b7c892b400e781dd5c57897efd7173aa.zip |
moebius#195: DOM - PointerEvent - improvements
https://github.com/MoonchildProductions/moebius/pull/195
Diffstat (limited to 'testing/marionette/test_error.js')
-rw-r--r-- | testing/marionette/test_error.js | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/testing/marionette/test_error.js b/testing/marionette/test_error.js index f27212637..a905f02f0 100644 --- a/testing/marionette/test_error.js +++ b/testing/marionette/test_error.js @@ -209,15 +209,25 @@ add_test(function test_ElementClickInterceptedError() { return otherEl; }, }, + style: { + pointerEvents: "auto", + } }; - let err = new ElementClickInterceptedError(obscuredEl, {x: 1, y: 2}); - equal("ElementClickInterceptedError", err.name); + let err1 = new ElementClickInterceptedError(obscuredEl, {x: 1, y: 2}); + equal("ElementClickInterceptedError", err1.name); equal("Element <b> is not clickable at point (1,2) " + "because another element <a> obscures it", - err.message); - equal("element click intercepted", err.status); - ok(err instanceof WebDriverError); + err1.message); + equal("element click intercepted", err1.status); + ok(err1 instanceof WebDriverError); + + obscuredEl.style.pointerEvents = "none"; + let err2 = new ElementClickInterceptedError(obscuredEl, {x: 1, y: 2}); + equal("Element <b> is not clickable at point (1,2) " + + "because it does not have pointer events enabled, " + + "and element <a> would receive the click instead", + err2.message); run_next_test(); }); |