Move platform/mac-wk2/tiled-drawing to tiled-drawing/
[WebKit-https.git] / LayoutTests / tiled-drawing / scrolling / frames / fixed-inside-frame.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5     <style>
6         iframe {
7             height: 400px;
8             width: 480px;
9             margin: 100px;
10             box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.2);
11         }
12         
13     </style>
14     <script>
15         if (window.testRunner) {
16             testRunner.waitUntilDone();
17             testRunner.dumpAsText();
18             window.internals.settings.setScrollingTreeIncludesFrames(true);
19         }
20
21         function frameDidChange()
22         {
23             window.setTimeout(function() {
24                 if (window.testRunner) {
25                     var scrollingTree = internals.scrollingStateTreeAsText();
26                     var layerTree = internals.layerTreeAsText(document);
27                     
28                     var resultElement = document.getElementById('result');
29                     resultElement.textContent = scrollingTree + layerTree;
30                     
31                     testRunner.notifyDone();
32                 }
33             }, 0);
34         }
35     </script>
36 </head>
37 <body>
38     <iframe src="resources/autoscrolling-frame-with-fixed.html" height="300" scrolling="yes"></iframe>
39 <pre id="result">Results</pre>
40 </body>
41 </html>