scrollingcoordinator/ios/ui-scrolling-tree.html is a Flaky Failure on iPad
[WebKit-https.git] / LayoutTests / scrollingcoordinator / ios / ui-scrolling-tree.html
1 <!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true contentMode=mobile ] -->
2 <html>
3 <head>
4     <meta name="viewport" content="initial-scale=1.0">
5     <style>
6         body {
7             width: 1300px;
8             height: 2000px;
9         }
10         
11         .fixed {
12             position: fixed;
13             top: 10px;
14             left: 12px;
15             height: 100px;
16             width: 100px;
17             background-color: blue;
18         }
19     </style>
20     <script src="../../resources/ui-helper.js"></script>
21     <script>
22         if (window.testRunner) {
23             testRunner.waitUntilDone();
24             testRunner.dumpAsText();
25         }
26
27         async function doTest()
28         {
29             await UIHelper.ensureStablePresentationUpdate();
30             let scrollingTree = await UIHelper.getScrollingTree();
31             document.getElementById('layers').textContent = scrollingTree;
32             testRunner.notifyDone();
33         }
34         
35         window.addEventListener('load', doTest, false);
36     </script>
37 </head>
38 <body>
39 <div class="fixed"></div>
40 <pre id="layers"></pre>
41 </body>
42 </html>