summaryrefslogtreecommitdiffstats
path: root/layout/base/tests/bug977003_inner_5.html
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-21 18:53:06 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-21 18:53:06 +0200
commit306690e137c2bb031020ba3c2c1515ba731a23a5 (patch)
tree81b242212f693af25c350668e3b72efbce9b224a /layout/base/tests/bug977003_inner_5.html
parent4549256c2b685782587f2ccad6a105c0392492c7 (diff)
parent0a744b1cfeecdd2487d9166792ac5234edc9ee6a (diff)
downloadUXP-306690e137c2bb031020ba3c2c1515ba731a23a5.tar
UXP-306690e137c2bb031020ba3c2c1515ba731a23a5.tar.gz
UXP-306690e137c2bb031020ba3c2c1515ba731a23a5.tar.lz
UXP-306690e137c2bb031020ba3c2c1515ba731a23a5.tar.xz
UXP-306690e137c2bb031020ba3c2c1515ba731a23a5.zip
Merge branch 'master' of https://github.com/MoonchildProductions/UXP into data-transfer_1
Diffstat (limited to 'layout/base/tests/bug977003_inner_5.html')
-rw-r--r--layout/base/tests/bug977003_inner_5.html8
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();