Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / dom / timer-increase-min-interval-and-reset-part-1.html
1 <html>
2 <head>
3 <script>
4 function log(msg) {
5     var element = document.createElement("div");
6     element.textContent = msg;
7     document.body.appendChild(element);
8     document.body.appendChild(document.createElement("br"));
9 }
10
11 function runTest() {
12     if (!window.testRunner) {
13         log("This test requires the LayoutTestController");
14         return;
15     }
16
17     testRunner.dumpAsText();
18
19     // Make timers run no more often than twice a second.
20     testRunner.setMinimumTimerInterval(0.5);
21
22     // Part 2 of this test (which will likely be executed immediately
23     // after this one by the harness) verifies that the minimum timer
24     // interval is reset between tests.
25
26     log("PASS");
27 }
28 </script>
29 </head>
30 <body onload="runTest()">
31 </body>
32 </html>