diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-04-21 14:53:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-21 14:53:24 +0200 |
commit | 844da4597f92c4d603e8df2c1f5c8b23f31904f0 (patch) | |
tree | 3d8fe3c6bec0d7e4538affe5efa6fd3294a72f86 /dom/events/test/pointerevents/test_bug1285128.html | |
parent | fb37ed0a373a0bbc29bbe6e20ca684e856185c5c (diff) | |
parent | 09f456b2808224e7707e51bfab8957ef067154e4 (diff) | |
download | UXP-844da4597f92c4d603e8df2c1f5c8b23f31904f0.tar UXP-844da4597f92c4d603e8df2c1f5c8b23f31904f0.tar.gz UXP-844da4597f92c4d603e8df2c1f5c8b23f31904f0.tar.lz UXP-844da4597f92c4d603e8df2c1f5c8b23f31904f0.tar.xz UXP-844da4597f92c4d603e8df2c1f5c8b23f31904f0.zip |
Merge pull request #221 from janekptacijarabaci/js_dom_pointer_events_1
moebius#71: Pointer Events - improvements
Diffstat (limited to 'dom/events/test/pointerevents/test_bug1285128.html')
-rw-r--r-- | dom/events/test/pointerevents/test_bug1285128.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dom/events/test/pointerevents/test_bug1285128.html b/dom/events/test/pointerevents/test_bug1285128.html index f7f1eb698..9577940c1 100644 --- a/dom/events/test/pointerevents/test_bug1285128.html +++ b/dom/events/test/pointerevents/test_bug1285128.html @@ -13,7 +13,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1285128 <body> <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1285128">Mozilla Bug 1285128</a> <p id="display"></p> -<div id="target0" style="width: 200px; height: 200px; background: green"></div> +<div id="target0" style="width: 50px; height: 50px; background: green"></div> +<div id="target1" style="width: 50px; height: 50px; background: red"></div> <script type="text/javascript"> /** Test for Bug 1285128 **/ @@ -31,7 +32,7 @@ function runTests() { }, false); }); - target0.addEventListener("mouseenter", () => { + target1.addEventListener("mouseup", () => { ok(!receivedPointerEvents, "synthesized mousemove should not trigger any pointer events"); SimpleTest.finish(); }); @@ -39,6 +40,8 @@ function runTests() { synthesizeMouseAtCenter(target0, { type: "mousemove", inputSource: SpecialPowers.Ci.nsIDOMMouseEvent.MOZ_SOURCE_MOUSE, isWidgetEventSynthesized: true }); + synthesizeMouseAtCenter(target1, { type: "mousedown" }); + synthesizeMouseAtCenter(target1, { type: "mouseup" }); } SpecialPowers.pushPrefEnv({"set": [["dom.w3c_pointer_events.enabled", true]]}, runTests); |