Title: [251375] trunk/LayoutTests
Revision
251375
Author
[email protected]
Date
2019-10-21 13:00:24 -0700 (Mon, 21 Oct 2019)

Log Message

scrollingcoordinator/ios/ui-scrolling-tree.html is a Flaky Failure on iPad
https://bugs.webkit.org/show_bug.cgi?id=203119
rdar://problem/52970947

Reviewed by Wenson Hsieh.

iPad viewport heuristics (WebPage::immediatelyShrinkToFitContent()) run on a zero-delay
timer after page load, which races with this test getting the UI-side scrolling tree
and makes the test flakey.

Fix by turning off the heuristics with "contentMode=mobile". Also fix the test
to use UIHelper to get the scrolling tree.

* platform/ipad/TestExpectations:
* platform/ipad/scrollingcoordinator/ios/ui-scrolling-tree-expected.txt:
* scrollingcoordinator/ios/ui-scrolling-tree.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (251374 => 251375)


--- trunk/LayoutTests/ChangeLog	2019-10-21 19:34:53 UTC (rev 251374)
+++ trunk/LayoutTests/ChangeLog	2019-10-21 20:00:24 UTC (rev 251375)
@@ -1,5 +1,24 @@
 2019-10-21  Simon Fraser  <[email protected]>
 
+        scrollingcoordinator/ios/ui-scrolling-tree.html is a Flaky Failure on iPad
+        https://bugs.webkit.org/show_bug.cgi?id=203119
+        rdar://problem/52970947
+
+        Reviewed by Wenson Hsieh.
+
+        iPad viewport heuristics (WebPage::immediatelyShrinkToFitContent()) run on a zero-delay
+        timer after page load, which races with this test getting the UI-side scrolling tree
+        and makes the test flakey.
+
+        Fix by turning off the heuristics with "contentMode=mobile". Also fix the test
+        to use UIHelper to get the scrolling tree.
+
+        * platform/ipad/TestExpectations:
+        * platform/ipad/scrollingcoordinator/ios/ui-scrolling-tree-expected.txt:
+        * scrollingcoordinator/ios/ui-scrolling-tree.html:
+
+2019-10-21  Simon Fraser  <[email protected]>
+
         [iOS WK2] Support hiding iframe scrollbars via ::-webkit-scrollbar style
         https://bugs.webkit.org/show_bug.cgi?id=203178
 

Modified: trunk/LayoutTests/platform/ipad/TestExpectations (251374 => 251375)


--- trunk/LayoutTests/platform/ipad/TestExpectations	2019-10-21 19:34:53 UTC (rev 251374)
+++ trunk/LayoutTests/platform/ipad/TestExpectations	2019-10-21 20:00:24 UTC (rev 251375)
@@ -63,6 +63,3 @@
 
 # <rdar://problem/52914585> (Layout Test fast/forms/file/file-input-reset-using-open-panel.html is Failing)
 fast/forms/file/file-input-reset-using-open-panel.html [ ImageOnlyFailure ]
-
-# rdar://52970947 (Layout Test scrollingcoordinator/ios/ui-scrolling-tree.html is a Flaky Failure on iPad iOS 13)
-scrollingcoordinator/ios/ui-scrolling-tree.html [ Pass Failure ]

Modified: trunk/LayoutTests/platform/ipad/scrollingcoordinator/ios/ui-scrolling-tree-expected.txt (251374 => 251375)


--- trunk/LayoutTests/platform/ipad/scrollingcoordinator/ios/ui-scrolling-tree-expected.txt	2019-10-21 19:34:53 UTC (rev 251374)
+++ trunk/LayoutTests/platform/ipad/scrollingcoordinator/ios/ui-scrolling-tree-expected.txt	2019-10-21 20:00:24 UTC (rev 251375)
@@ -1,7 +1,7 @@
 
 (scrolling tree
   (frame scrolling node
-    (scrollable area size width=1280 height=1673)
+    (scrollable area size width=768 height=1004)
     (total content size width=1308 height=2021)
     (last committed scroll position (0,0))
     (scrollable area parameters 
@@ -9,12 +9,12 @@
       (vertical scroll elasticity 1)
       (horizontal scrollbar mode 0)
       (vertical scrollbar mode 0))
-    (layout viewport (0,0) width=1280 height=1673)
+    (layout viewport (0,0) width=768 height=1004)
     (min layoutViewport origin (0,0))
-    (max layoutViewport origin (28,348))
+    (max layoutViewport origin (540,1017))
     (behavior for fixed 0)
     (fixed node
       (fixed constraints 
-        (viewport-rect-at-last-layout (0,0) width=1280 height=1673)
+        (viewport-rect-at-last-layout (0,0) width=768 height=1004)
         (layer-position-at-last-layout (12,10)))
       (layer top left (12,10)))))

Modified: trunk/LayoutTests/scrollingcoordinator/ios/ui-scrolling-tree.html (251374 => 251375)


--- trunk/LayoutTests/scrollingcoordinator/ios/ui-scrolling-tree.html	2019-10-21 19:34:53 UTC (rev 251374)
+++ trunk/LayoutTests/scrollingcoordinator/ios/ui-scrolling-tree.html	2019-10-21 20:00:24 UTC (rev 251375)
@@ -1,4 +1,4 @@
-<!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true ] -->
+<!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true contentMode=mobile ] -->
 <html>
 <head>
     <meta name="viewport" content="initial-scale=1.0">
@@ -17,6 +17,7 @@
             background-color: blue;
         }
     </style>
+    <script src=""
     <script>
         if (window.testRunner) {
             testRunner.waitUntilDone();
@@ -23,23 +24,13 @@
             testRunner.dumpAsText();
         }
 
-        function getScrollingTreeUIScript()
+        async function doTest()
         {
-            return `(function() {
-                return uiController.scrollingTreeAsText;
-            })();`;
+            await UIHelper.ensureStablePresentationUpdate();
+            let scrollingTree = await UIHelper.getScrollingTree();
+            document.getElementById('layers').textContent = scrollingTree;
+            testRunner.notifyDone();
         }
-
-        function doTest()
-        {
-            if (!testRunner.runUIScript)
-                return
-
-            testRunner.runUIScript(getScrollingTreeUIScript(), function(scrollingTree) {
-                document.getElementById('layers').textContent = scrollingTree;
-                testRunner.notifyDone();
-            });
-        }
         
         window.addEventListener('load', doTest, false);
     </script>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to