Title: [253734] trunk/LayoutTests
Revision
253734
Author
[email protected]
Date
2019-12-18 19:12:54 -0800 (Wed, 18 Dec 2019)

Log Message

REGRESSION: [ Mac wk2 ] tiled-drawing/scrolling/fast-scroll-select-latched-mainframe.html is a flakey failure
https://bugs.webkit.org/show_bug.cgi?id=205363
<rdar://problem/58025488>

Reviewed by Wenson Hsieh.

Fix the test by waiting for rAF and avoid running checkForScroll more than once.

* platform/mac-wk2/TestExpectations:
* tiled-drawing/scrolling/fast-scroll-select-latched-mainframe.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (253733 => 253734)


--- trunk/LayoutTests/ChangeLog	2019-12-19 02:38:47 UTC (rev 253733)
+++ trunk/LayoutTests/ChangeLog	2019-12-19 03:12:54 UTC (rev 253734)
@@ -1,3 +1,16 @@
+2019-12-18  Ryosuke Niwa  <[email protected]>
+
+        REGRESSION: [ Mac wk2 ] tiled-drawing/scrolling/fast-scroll-select-latched-mainframe.html is a flakey failure
+        https://bugs.webkit.org/show_bug.cgi?id=205363
+        <rdar://problem/58025488>
+
+        Reviewed by Wenson Hsieh.
+
+        Fix the test by waiting for rAF and avoid running checkForScroll more than once.
+
+        * platform/mac-wk2/TestExpectations:
+        * tiled-drawing/scrolling/fast-scroll-select-latched-mainframe.html:
+
 2019-12-18  Antoine Quint  <[email protected]>
 
         Animations stop if new tab opened (and closed)

Modified: trunk/LayoutTests/platform/mac-wk2/TestExpectations (253733 => 253734)


--- trunk/LayoutTests/platform/mac-wk2/TestExpectations	2019-12-19 02:38:47 UTC (rev 253733)
+++ trunk/LayoutTests/platform/mac-wk2/TestExpectations	2019-12-19 03:12:54 UTC (rev 253734)
@@ -659,8 +659,6 @@
 
 webkit.org/b/171837 [ Debug ] http/tests/security/storage-blocking-loosened-plugin.html [ Pass Failure ]
 
-webkit.org/b/171935 tiled-drawing/scrolling/fast-scroll-select-latched-mainframe.html [ Pass Failure ]
-
 webkit.org/b/171939 [ Sierra Release ] media/track/track-cue-rendering-on-resize.html [ Pass Timeout ]
 
 webkit.org/b/171947 [ Sierra Release ] transitions/extra-transition.html [ Pass Failure ]

Modified: trunk/LayoutTests/tiled-drawing/scrolling/fast-scroll-select-latched-mainframe.html (253733 => 253734)


--- trunk/LayoutTests/tiled-drawing/scrolling/fast-scroll-select-latched-mainframe.html	2019-12-19 02:38:47 UTC (rev 253733)
+++ trunk/LayoutTests/tiled-drawing/scrolling/fast-scroll-select-latched-mainframe.html	2019-12-19 03:12:54 UTC (rev 253734)
@@ -47,8 +47,13 @@
         checkForScroll();
 }
 
+let didCheckForScroll = false;
 function checkForScroll()
 {
+    if (didCheckForScroll)
+        return;
+    didCheckForScroll = true;
+
     // The select should not have scrolled at all.
     var pageScrollPositionAfter = document.scrollingElement.scrollTop;
     var selectScrollPositionAfter = selectTarget.scrollTop;
@@ -85,7 +90,9 @@
     eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -1, 'none', 'begin');
     eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -4, 'none', 'continue');
     eventSender.mouseScrollByWithWheelAndMomentumPhases(0, 0, 'none', 'end');
-    eventSender.callAfterScrollingCompletes(checkForScroll);
+    eventSender.callAfterScrollingCompletes(() => {
+        requestAnimationFrame(checkForScroll);
+    });
 
     // We should finish via the scroll event; this will fire in the case of failure when the page doesn't scroll.
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to