Title: [252350] trunk/LayoutTests
Revision
252350
Author
[email protected]
Date
2019-11-11 17:47:50 -0800 (Mon, 11 Nov 2019)

Log Message

iOS: fast/scrolling/ios/scrollTo-at-page-load.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=204062

Reviewed by Wenson Hsieh.

Wait until the next rendering update for a scroll event.`

* fast/scrolling/ios/scrollTo-at-page-load.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (252349 => 252350)


--- trunk/LayoutTests/ChangeLog	2019-11-12 01:35:20 UTC (rev 252349)
+++ trunk/LayoutTests/ChangeLog	2019-11-12 01:47:50 UTC (rev 252350)
@@ -1,3 +1,14 @@
+2019-11-11  Ryosuke Niwa  <[email protected]>
+
+        iOS: fast/scrolling/ios/scrollTo-at-page-load.html is flaky
+        https://bugs.webkit.org/show_bug.cgi?id=204062
+
+        Reviewed by Wenson Hsieh.
+
+        Wait until the next rendering update for a scroll event.`
+
+        * fast/scrolling/ios/scrollTo-at-page-load.html:
+
 2019-11-11  Youenn Fablet  <[email protected]>
 
         DOMFormData should be available in workers

Modified: trunk/LayoutTests/fast/scrolling/ios/scrollTo-at-page-load.html (252349 => 252350)


--- trunk/LayoutTests/fast/scrolling/ios/scrollTo-at-page-load.html	2019-11-12 01:35:20 UTC (rev 252349)
+++ trunk/LayoutTests/fast/scrolling/ios/scrollTo-at-page-load.html	2019-11-12 01:47:50 UTC (rev 252350)
@@ -26,10 +26,12 @@
 function onPageLoad()
 {
     window.scrollTo(0, 10);
-    window.setTimeout(function() {
-      shouldBe('scrollEventCount', '1');
-      shouldBe('window.scrollY', '10');
-      finishJSTest();
+    setTimeout(() => {
+        requestAnimationFrame(() => {
+            shouldBe('scrollEventCount', '1');
+            shouldBe('window.scrollY', '10');
+            finishJSTest();
+        });
     }, 10); // Scroll events are async.
 };
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to