summaryrefslogtreecommitdiffstats
path: root/layout/base/tests/bug977003_inner_6.html
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-20 22:18:52 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-20 22:18:52 +0200
commit09f456b2808224e7707e51bfab8957ef067154e4 (patch)
tree95d53f259f5807e2cbee9d455a7629eb4db53c77 /layout/base/tests/bug977003_inner_6.html
parent9b1ba6833410c0b17e885b4bc2b7bff6cf86d5cd (diff)
downloadUXP-09f456b2808224e7707e51bfab8957ef067154e4.tar
UXP-09f456b2808224e7707e51bfab8957ef067154e4.tar.gz
UXP-09f456b2808224e7707e51bfab8957ef067154e4.tar.lz
UXP-09f456b2808224e7707e51bfab8957ef067154e4.tar.xz
UXP-09f456b2808224e7707e51bfab8957ef067154e4.zip
moebius#71: DOM - Pointer Events - improvements
https://github.com/MoonchildProductions/moebius/pull/71
Diffstat (limited to 'layout/base/tests/bug977003_inner_6.html')
-rw-r--r--layout/base/tests/bug977003_inner_6.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layout/base/tests/bug977003_inner_6.html b/layout/base/tests/bug977003_inner_6.html
index 12424b1f2..b60ca5c31 100644
--- a/layout/base/tests/bug977003_inner_6.html
+++ b/layout/base/tests/bug977003_inner_6.html
@@ -19,6 +19,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1073563
var listener = undefined;
var test_target = false;
var test_move = false;
+ var test_over = false;
var test_listener = false;
var receive_lostpointercapture = false;
@@ -44,6 +45,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1073563
}
} else if(event.type == "pointermove") {
test_move = true;
+ } else if(event.type == "pointerover") {
+ test_over = true;
} else {
test_listener = true;
}
@@ -81,7 +84,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1073563
// PE level 2 defines that the pending pointer capture is processed when firing next pointer events.
// In this test case, pointer capture release is processed when firing pointermove
parent.is(test_move, true, "Part 6: gotpointercapture should be triggered by pointermove");
- parent.is(test_listener, false, "Part 6: no other pointerevents should be fired before gotpointercapture");
+ parent.is(test_over, true, "Part 6: pointerover should be received when capturing pointer");
+ parent.is(test_listener, false, "Part 6: no other pointerevents should be fired before gotpointercapture except pointerover");
logger("finishTest");
parent.finishTest();
}