Skip to content

Commit 04197f6

Browse files
authored
Unflake new-scroll-event-dispatched-at-next-updating-rendering-time.html in Safari (#59330)
The assertion related to the main bug measuring the timeOnTransitionRun relative to the timeOnScrollEvent is always passing in Safari. The MQ listener happens occasionally too quickly and performance.now() ends up equal for both the scroll event and the MQ listener. This causes a flaky test failure in Safari. Make the test more flexible by allowing the timestamps to be equal.
1 parent 37e0b1f commit 04197f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

html/webappapis/scripting/event-loops/new-scroll-event-dispatched-at-next-updating-rendering-time.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686

8787
// Now it's time to receive the MQL change event.
8888
await mqlChangeEvent;
89-
assert_less_than(timeOnScrollEvent, timeOnMQLChange,
89+
assert_less_than_equal(timeOnScrollEvent, timeOnMQLChange,
9090
"The MQL change event should have been dispatched after the first scroll event");
9191
assert_equals(timeOnScrollEventOnAnotherScroller, null,
9292
"The new scroll event should not yet have been dispatched");

0 commit comments

Comments
 (0)