From 0d3c9093a89ffd6e4451759cbc4e8ea5c106762f Mon Sep 17 00:00:00 2001 From: Edgar Chen Date: Wed, 18 Oct 2023 09:50:02 +0000 Subject: [PATCH] =?UTF-8?q?Bug=201859053=20[wpt=20PR=2042538]=20-=20Stop?= =?UTF-8?q?=20logging=20mousemove=20events=20in=20mousemove=5Fprevent=5Fde?= =?UTF-8?q?fault=5Faction.ten=E2=80=A6,=20a=3Dtestonly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic update from web-platform-tests Stop logging mousemove events in mousemove_prevent_default_action.tentative.html (#42538) Fix https://github.com/web-platform-tests/interop/issues/396. -- wpt-commits: 4ab37a2aa733a03162ce2d5e3782d5da7940c330 wpt-pr: 42538 --- .../mouse/mousemove_prevent_default_action.tentative.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/testing/web-platform/tests/uievents/mouse/mousemove_prevent_default_action.tentative.html b/testing/web-platform/tests/uievents/mouse/mousemove_prevent_default_action.tentative.html index 305315d728dc4..4d9772369b7ae 100644 --- a/testing/web-platform/tests/uievents/mouse/mousemove_prevent_default_action.tentative.html +++ b/testing/web-platform/tests/uievents/mouse/mousemove_prevent_default_action.tentative.html @@ -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 => { @@ -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"); @@ -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");