Skip to content

Commit

Permalink
Bug 1859053 [wpt PR 42538] - Stop logging mousemove events in mousemo…
Browse files Browse the repository at this point in the history
…ve_prevent_default_action.ten…, a=testonly

Automatic update from web-platform-tests
Stop logging mousemove events in mousemove_prevent_default_action.tentative.html (#42538)

Fix web-platform-tests/interop#396.
--

wpt-commits: 4ab37a2aa733a03162ce2d5e3782d5da7940c330
wpt-pr: 42538
  • Loading branch information
EdgarChen authored and moz-wptsync-bot committed Oct 26, 2023
1 parent 2cadaf5 commit d369df3
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
// Deliberately avoiding mouseup here because the last selectionchange
// may be fired before or after the mouseup.
document.addEventListener("mousedown", logEvents);
document.addEventListener("mousemove", logEvents);
document.addEventListener("mousemove", e => e.preventDefault());

promise_test(async test => {
Expand All @@ -54,8 +53,7 @@

await mouseup_promise;

const expected_events = ["mousemove", "mousedown", "selectionchange",
"mousemove", "selectionchange"];
const expected_events = ["mousedown", "selectionchange", "selectionchange"];

assert_equals(event_log.toString(), expected_events.toString(),
"received events");
Expand Down Expand Up @@ -88,7 +86,7 @@

await Promise.race([dragstart_promise, mouseup_promise]);

const expected_events = ["mousemove", "mousedown", "mousemove", "dragstart"];
const expected_events = ["mousedown", "dragstart"];

assert_equals(event_log.toString(), expected_events.toString(),
"received events");
Expand Down

0 comments on commit d369df3

Please sign in to comment.