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 /layout/base/tests/bug977003_inner_5.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 'layout/base/tests/bug977003_inner_5.html')
-rw-r--r-- | layout/base/tests/bug977003_inner_5.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/layout/base/tests/bug977003_inner_5.html b/layout/base/tests/bug977003_inner_5.html index 70fc5ba40..81094043c 100644 --- a/layout/base/tests/bug977003_inner_5.html +++ b/layout/base/tests/bug977003_inner_5.html @@ -26,6 +26,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1098139 var test_lost_listener = false; var test_lost_type = ""; var test_move_listener = false; + var test_over_listener = false; var test_listener = false; var test_lost_primary = false; @@ -53,6 +54,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1098139 logger("Receive event on Listener: " + event.type); test_move_listener = true; } + function ListenerOverHandler(event) { + logger("Receive event on Listener: " + event.type); + test_over_listener = true; + } function ListenerHandler(event) { logger("Receive event on Listener: " + event.type); test_listener = true; @@ -74,7 +79,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1098139 target.addEventListener("pointerdown", TargetDownHandler, false); listener.addEventListener("gotpointercapture", ListenerGotPCHandler, false); listener.addEventListener("lostpointercapture", ListenerLostPCHandler, false); - listener.addEventListener("pointerover", ListenerHandler, false); + listener.addEventListener("pointerover", ListenerOverHandler, false); listener.addEventListener("pointermove", ListenerMoveHandler, false); listener.addEventListener("pointerup", ListenerHandler, false); listener.addEventListener("pointerout", ListenerHandler, false); @@ -93,6 +98,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1098139 parent.is(test_lost_type, "touch", "Part 5: lostpointercapture event should have pointerType touch"); parent.is(test_lost_primary, true, "Part 5: lostpointercapture event should have isPrimary as true"); parent.is(test_move_listener, true, "Part 5: gotpointercapture should be triggered by pointermove"); + parent.is(test_over_listener, true, "Part 5: listener should receive pointerover when capturing pointer"); parent.is(test_listener, false, "Part 5: listener should not receive any other events"); logger("finishTest"); parent.finishTest(); |