Turn on threaded scrolling by default in the tests
[WebKit-https.git] / LayoutTests / compositing / rtl / rtl-fixed-overflow-scrolled.html
1 <!-- webkit-test-runner [ useThreadedScrolling=false ] -->
2 <html>
3 <head>
4 <style>
5     body {
6         direction: rtl;
7         margin: 0px;
8         background-color: red;
9     }
10
11     .positioned {
12         position: fixed;
13         top: 50px;
14         left: 50px;
15         width: 100px;
16         height: 100px;
17     }
18
19     .indicator {
20         background-color: red;
21     }
22
23     .layer {
24         -webkit-transform:translateZ(0);
25         background-color: green;
26     }
27
28     #root {
29         width: 1000px;
30         height: 1000px;
31         background-color: white;
32     }
33
34     #layertree {
35         position: absolute;
36         top: 10000px;
37         left: 0px;
38     }
39 </style>
40 <script>
41     function doTest() {
42         if (window.testRunner) {
43             testRunner.waitUntilDone();
44             testRunner.dumpAsText(true);
45         }
46
47         // The far left coordinate of the document varies by window width.
48         var offset = document.body.clientWidth - document.body.scrollWidth + 1;
49
50         window.setTimeout(function() {
51             window.scrollTo(offset, 0);
52             if (window.testRunner) {
53                 if (top == self)
54                     document.getElementById('layertree').innerText = window.internals.layerTreeAsText(document);
55                 testRunner.notifyDone();
56             }
57         }, 0);
58     }
59     window.addEventListener('load', doTest, false);
60 </script>
61 <body>
62     <div id="root"></div>
63     <div class="positioned indicator"></div>
64     <div class="positioned layer"></div>
65
66     <pre id="layertree"></pre>
67 </body>
68 </html>