зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1323916 - [Pointer Event] Fix errors in pointer event test cases. r=smaug
MozReview-Commit-ID: KEayE2B7aKX
This commit is contained in:
Родитель
1b00ddec99
Коммит
2253df5001
|
@ -42,7 +42,7 @@
|
|||
|
||||
on_event(target1, "pointermove", function (event) {
|
||||
assert_true(true, "target1 receives pointermove");
|
||||
assert_false(target1.hasPointerCapture(), "target1.hasPointerCapture should be false");
|
||||
assert_false(target1.hasPointerCapture(event.pointerId), "target1.hasPointerCapture should be false");
|
||||
});
|
||||
|
||||
on_event(target0, "pointerup", function (event) {
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
detected_pointertypes[event.pointerType] = true;
|
||||
target0.setPointerCapture(event.pointerId);
|
||||
target0.releasePointerCapture(event.pointerId);
|
||||
assert_equals(target0.hasPointerCapture(e.pointerId), false, "After target0.releasePointerCapture, target0.hasPointerCapture should be false");
|
||||
assert_equals(target0.hasPointerCapture(event.pointerId), false, "After target0.releasePointerCapture, target0.hasPointerCapture should be false");
|
||||
});
|
||||
|
||||
on_event(target0, "gotpointercapture", function (event) {
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
detected_pointertypes[event.pointerType] = true;
|
||||
target0.setPointerCapture(event.pointerId);
|
||||
target0.releasePointerCapture(event.pointerId);
|
||||
assert_equals(target0.hasPointerCapture(e.pointerId), false, "After target0.releasePointerCapture, target0.hasPointerCapture should be false");
|
||||
assert_equals(target0.hasPointerCapture(event.pointerId), false, "After target0.releasePointerCapture, target0.hasPointerCapture should be false");
|
||||
});
|
||||
|
||||
on_event(target0, "gotpointercapture", function (event) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче