Bug 1323916 - [Pointer Event] Fix errors in pointer event test cases. r=smaug

MozReview-Commit-ID: KEayE2B7aKX
This commit is contained in:
Stone Shih 2016-12-13 14:05:10 +08:00
Родитель 1b00ddec99
Коммит 2253df5001
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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) {