4ad0413231a86bb393fe7d9cbe28fa6d873b872a
[WebKit-https.git] / LayoutTests / scrollingcoordinator / ios / ui-scrolling-tree.html
1 <!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true ] -->
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>
21         if (window.testRunner) {
22             testRunner.waitUntilDone();
23             testRunner.dumpAsText();
24         }
25
26         function getScrollingTreeUIScript()
27         {
28             return `(function() {
29                 return uiController.scrollingTreeAsText;
30             })();`;
31         }
32
33         function doTest()
34         {
35             if (!testRunner.runUIScript)
36                 return
37
38             testRunner.runUIScript(getScrollingTreeUIScript(), function(scrollingTree) {
39                 document.getElementById('layers').textContent = scrollingTree;
40                 testRunner.notifyDone();
41             });
42         }
43         
44         window.addEventListener('load', doTest, false);
45     </script>
46 </head>
47 <body>
48 <div class="fixed"></div>
49 <pre id="layers"></pre>
50 </body>
51 </html>