Skip to content

Commit

Permalink
Use (1, 1) to reset hovering in wpt pointerevent_mouse_capture_change…
Browse files Browse the repository at this point in the history
…_hover.html

Per w3c/webdriver#1545, the first pointerMove action
at (0,0) is "no-op" action.

Differential Revision: https://phabricator.services.mozilla.com/D204569

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1885249
gecko-commit: f37be3bf10828ddc178a5ac6a05a6acd2f685db2
gecko-reviewers: masayuki
  • Loading branch information
EdgarChen authored and moz-wptsync-bot committed Mar 14, 2024
1 parent 4933927 commit 60e3852
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pointerevents/pointerevent_mouse_capture_change_hover.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@

function run() {
promise_test (async() => {
// Move to (0, 0) to reset hovering.
await new test_driver.Actions().pointerMove(0, 0).send();
// Move to (1, 1) to reset hovering.
await new test_driver.Actions().pointerMove(1, 1).send();
receivedEventList = [];

// pointerdown at green -> set capture to green -> green receive the following moves.
Expand Down Expand Up @@ -93,8 +93,8 @@
}, "Mouse down and capture to green.");

promise_test (async() => {
// Move to (0, 0) to reset hovering.
await new test_driver.Actions().addPointer("mouse").pointerMove(0, 0).send();
// Move to (1, 1) to reset hovering.
await new test_driver.Actions().addPointer("mouse").pointerMove(1, 1).send();
receivedEventList = [];

// pointerdown at green -> set capture to blue -> blue receive the following moves.
Expand Down Expand Up @@ -129,8 +129,8 @@
}, "Mouse down at green and capture to blue.");

promise_test (async() => {
// Move to (0, 0) to reset hovering.
await new test_driver.Actions().addPointer("mouse").pointerMove(0, 0).send();
// Move to (1, 1) to reset hovering.
await new test_driver.Actions().addPointer("mouse").pointerMove(1, 1).send();
receivedEventList = [];

// pointerdown at green -> set capture to green -> green receive first move -> release capture -> blue receive the next move
Expand Down

0 comments on commit 60e3852

Please sign in to comment.