Modernize for loops in JSC
[WebKit-https.git] / LayoutTests / css3 / scroll-snap / scroll-snap-coordinate-mainframe.html
1 <html>
2
3 <head>
4     <style>
5         body {
6             margin: 0;
7             -webkit-scroll-snap-type: mandatory;
8         }
9
10         .vertical {
11             width: 100%;
12             height: 600px;
13             -webkit-scroll-snap-coordinate: 0px 0px;
14         }
15     </style>
16
17     <script src="../../resources/js-test-pre.js"></script>
18     <script>
19     function runTest()
20     {
21         debug("Scroll-snap offsets: " + window.internals.scrollSnapOffsets(document.body));
22         finishJSTest();
23     }
24
25     function setup()
26     {
27         if (window.testRunner) {
28             window.jsTestIsAsync = true;
29             testRunner.dumpAsText();
30             testRunner.waitUntilDone();
31             setTimeout(runTest, 0);
32         }
33     }
34     </script>
35 </head>
36
37 <body onload="setup()">
38     <div id="child00" class="vertical"><div id="console"></div></div>
39     <div id="child01" class="vertical"></div>
40     <div id="child02" class="vertical"></div>
41     <div id="child03" class="vertical"></div>
42     <div id="child04" class="vertical"></div>
43     <div id="child05" class="vertical"></div>
44     <script src="../../resources/js-test-post.js"></script>
45 </body>
46
47 </html>