Title: [253735] trunk/LayoutTests
- Revision
- 253735
- Author
- [email protected]
- Date
- 2019-12-18 19:16:23 -0800 (Wed, 18 Dec 2019)
Log Message
REGRESSION: [ Mac wk2 ] tiled-drawing/scrolling/fast-scroll-div-latched-mainframe-with-handler.html is a flakey failure
https://bugs.webkit.org/show_bug.cgi?id=205364
<rdar://problem/58025862>
Reviewed by Simon Fraser.
Fix the test by waiting for rAF and avoid running checkForScroll more than once.
* platform/mac-wk2/TestExpectations: Removed the flaky expectation.
* tiled-drawing/scrolling/fast-scroll-div-latched-mainframe-with-handler.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (253734 => 253735)
--- trunk/LayoutTests/ChangeLog 2019-12-19 03:12:54 UTC (rev 253734)
+++ trunk/LayoutTests/ChangeLog 2019-12-19 03:16:23 UTC (rev 253735)
@@ -1,5 +1,18 @@
2019-12-18 Ryosuke Niwa <[email protected]>
+ REGRESSION: [ Mac wk2 ] tiled-drawing/scrolling/fast-scroll-div-latched-mainframe-with-handler.html is a flakey failure
+ https://bugs.webkit.org/show_bug.cgi?id=205364
+ <rdar://problem/58025862>
+
+ Reviewed by Simon Fraser.
+
+ Fix the test by waiting for rAF and avoid running checkForScroll more than once.
+
+ * platform/mac-wk2/TestExpectations: Removed the flaky expectation.
+ * tiled-drawing/scrolling/fast-scroll-div-latched-mainframe-with-handler.html:
+
+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>
Modified: trunk/LayoutTests/platform/mac-wk2/TestExpectations (253734 => 253735)
--- trunk/LayoutTests/platform/mac-wk2/TestExpectations 2019-12-19 03:12:54 UTC (rev 253734)
+++ trunk/LayoutTests/platform/mac-wk2/TestExpectations 2019-12-19 03:16:23 UTC (rev 253735)
@@ -925,6 +925,4 @@
webkit.org/b/205301 [ Mojave+ ] inspector/canvas/requestShaderSource-webgpu.html [ Pass Failure ]
-webkit.org/b/205364 tiled-drawing/scrolling/fast-scroll-div-latched-mainframe-with-handler.html [ Pass Failure ]
-
wbekit.org/b/205365 [ Mojave+ Debug ] fast/mediastream/captureStream/canvas2d-heavy-drawing.html [ Pass Failure ]
\ No newline at end of file
Modified: trunk/LayoutTests/tiled-drawing/scrolling/fast-scroll-div-latched-mainframe-with-handler.html (253734 => 253735)
--- trunk/LayoutTests/tiled-drawing/scrolling/fast-scroll-div-latched-mainframe-with-handler.html 2019-12-19 03:12:54 UTC (rev 253734)
+++ trunk/LayoutTests/tiled-drawing/scrolling/fast-scroll-div-latched-mainframe-with-handler.html 2019-12-19 03:16:23 UTC (rev 253735)
@@ -53,8 +53,13 @@
checkForScroll();
}
+let didCheckForScroll = false;
function checkForScroll()
{
+ if (didCheckForScroll)
+ return;
+ didCheckForScroll = true;
+
// The div should not have scrolled at all.
var pageScrollPositionAfter = document.scrollingElement.scrollTop;
var divScrollPositionAfter = divTarget.scrollTop;
@@ -92,7 +97,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