From fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:14:29 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- ...after_pointerdown_target_removed.tentative.html | 281 ++++++++++++++++++++ .../pointerevent_click_during_capture.html | 290 +++++++++++---------- .../pointerevent_mouse_capture_change_hover.html | 12 +- 3 files changed, 441 insertions(+), 142 deletions(-) create mode 100644 testing/web-platform/tests/pointerevents/compat/pointerevent_touch_target_after_pointerdown_target_removed.tentative.html (limited to 'testing/web-platform/tests/pointerevents') diff --git a/testing/web-platform/tests/pointerevents/compat/pointerevent_touch_target_after_pointerdown_target_removed.tentative.html b/testing/web-platform/tests/pointerevents/compat/pointerevent_touch_target_after_pointerdown_target_removed.tentative.html new file mode 100644 index 0000000000..124133d25c --- /dev/null +++ b/testing/web-platform/tests/pointerevents/compat/pointerevent_touch_target_after_pointerdown_target_removed.tentative.html @@ -0,0 +1,281 @@ + + + + +Compatibility mapping with touch events after removing pointerdown target + + + + + + + + + diff --git a/testing/web-platform/tests/pointerevents/pointerevent_click_during_capture.html b/testing/web-platform/tests/pointerevents/pointerevent_click_during_capture.html index e7448c7a8b..d179144557 100644 --- a/testing/web-platform/tests/pointerevents/pointerevent_click_during_capture.html +++ b/testing/web-platform/tests/pointerevents/pointerevent_click_during_capture.html @@ -1,138 +1,156 @@ - + +Target of click-like events with pointer capture + + + + + + + + + + + + + +
+
+
+
+
+ + - - click event target during capture - - - - - - - - - - - - -

Pointer Event: click event during capture

-

-

Test Description: - Click event should be sent to the first common ancestor of the pointerdown and pointerup targets. -
    -
  1. Click on the green box with the left button of mouse.
  2. -
  3. Press down the left button on the blue box and drag to the green box and release the button.
  4. -
  5. Repeat the two steps above once again.
  6. -
-

-
-
-
-
-
-
-
- diff --git a/testing/web-platform/tests/pointerevents/pointerevent_mouse_capture_change_hover.html b/testing/web-platform/tests/pointerevents/pointerevent_mouse_capture_change_hover.html index ef824dafd9..eb46000938 100644 --- a/testing/web-platform/tests/pointerevents/pointerevent_mouse_capture_change_hover.html +++ b/testing/web-platform/tests/pointerevents/pointerevent_mouse_capture_change_hover.html @@ -61,8 +61,8 @@ function releaseCapture(event) { 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. @@ -93,8 +93,8 @@ function run() { }, "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. @@ -129,8 +129,8 @@ function run() { }, "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 -- cgit v1.2.3