From dcb5b179f61e38c64f71490f63dbdb2bcdc15536 Mon Sep 17 00:00:00 2001 From: lilyspiniolas <119537181+lilyspiniolas@users.noreply.github.com> Date: Tue, 20 Aug 2024 21:04:27 -0700 Subject: [PATCH] Updated pointerevents/mouse-pointer-boundary-events-for-shadowdom.html to not fail when pointer and mouse events are interleaved (#47395) --- ...pointer-boundary-events-for-shadowdom.html | 110 ++++++++++-------- 1 file changed, 61 insertions(+), 49 deletions(-) diff --git a/pointerevents/mouse-pointer-boundary-events-for-shadowdom.html b/pointerevents/mouse-pointer-boundary-events-for-shadowdom.html index ea200d6c966560..70b7439ce40fef 100644 --- a/pointerevents/mouse-pointer-boundary-events-for-shadowdom.html +++ b/pointerevents/mouse-pointer-boundary-events-for-shadowdom.html @@ -12,63 +12,75 @@

PointerEvent: Verifies that mouse boundary events don't point to shadow-dom< + let outOfInputExpected = [ + "pointerout target=INPUT relatedTarget=BODY", + "pointerover target=BODY relatedTarget=INPUT", + "mouseout target=INPUT relatedTarget=BODY", + "mouseover target=BODY relatedTarget=INPUT", + ]; + assert_true(events_match_expected(receivedEvents, outOfInputExpected), "Moved out of "); + }, "PointerEvent: Verifies that mouse boundary events don't point to shadow-dom"); + \ No newline at end of file