зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1475429 [wpt PR 11956] - update hoverable pointerevent wpt, a=testonly
Automatic update from web-platform-testsupdate hoverable pointerevent wpt Update test wpt/pointerevent_attributes_hoverable_pointers This test was failing occationally on manual test, when we have clientX == box.right or clientY == box.bottom. update the test assertion so coordinates on border can be consider inside box. Note that on right border can also be outside box for the mouseevents. because we truncate the coordinates into interger. Bug: 863029 Change-Id: Id20fbe0b6cf8566e6cdee229f427a0c747ed0c0a Reviewed-on: https://chromium-review.googlesource.com/1135432 Commit-Queue: Ella Ge <eirage@chromium.org> Reviewed-by: Navid Zolghadr <nzolghadr@chromium.org> Cr-Commit-Position: refs/heads/master@{#574624} -- wpt-commits: df05bcb7c5c82e300805d7c11121453ec4036e32 wpt-pr: 11956
This commit is contained in:
Родитель
736fe4d543
Коммит
0736d725ba
|
@ -602473,7 +602473,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"pointerevents/pointerevent_attributes_hoverable_pointers-manual.html": [
|
||||
"9a71336042a931e45c7aef0e031669c26ac5c36c",
|
||||
"852c9d598c230405d82a96dcd92a52827764e15c",
|
||||
"manual"
|
||||
],
|
||||
"pointerevents/pointerevent_attributes_nohover_pointers-manual.html": [
|
||||
|
|
|
@ -60,11 +60,14 @@
|
|||
// Test clientX and clientY
|
||||
if (event.type != 'pointerout' && event.type != 'pointerleave' ) {
|
||||
test(function () {
|
||||
assert_true(event.clientX >= targetBoundingClientRect.left && event.clientX < targetBoundingClientRect.right && event.clientY >= targetBoundingClientRect.top && event.clientY < targetBoundingClientRect.bottom, "ClientX/Y should be in the boundaries of the box");
|
||||
assert_greater_than_equal(event.clientX, targetBoundingClientRect.left, "clientX should be greater or equal than left of the box");
|
||||
assert_greater_than_equal(event.clientY, targetBoundingClientRect.top, "clientY should be greater or equal than top of the box");
|
||||
assert_less_than_equal(event.clientX, targetBoundingClientRect.right, "clientX should be less or equal than right of the box");
|
||||
assert_less_than_equal(event.clientY, targetBoundingClientRect.bottom, "clientY should be less or equal than bottom of the box");
|
||||
}, pointerTestName + "'s ClientX and ClientY attributes are correct.");
|
||||
} else {
|
||||
test(function () {
|
||||
assert_true(event.clientX < targetBoundingClientRect.left || event.clientX > targetBoundingClientRect.right - 1 || event.clientY < targetBoundingClientRect.top || event.clientY > targetBoundingClientRect.bottom - 1, "ClientX/Y should be out of the boundaries of the box");
|
||||
assert_true(event.clientX < targetBoundingClientRect.left || event.clientX >= targetBoundingClientRect.right || event.clientY < targetBoundingClientRect.top || event.clientY >= targetBoundingClientRect.bottom, "ClientX/Y should be out of the boundaries of the box");
|
||||
}, pointerTestName + "'s ClientX and ClientY attributes are correct.");
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче