Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / dom / DOMImplementation / createDocument-with-used-doctype.html
1 <body>
2 <script>
3 if (window.testRunner) {
4     testRunner.dumpAsText();
5     testRunner.waitUntilDone();
6 }
7
8 function gc()
9 {
10     if (window.GCController)
11         return GCController.collect();
12
13     for (var i = 0; i < 10000; i++)
14         var s = new String("");
15 }
16
17 // Reload multiple times, to make crashing more likely.
18 var iterationsLeft = 50;
19 function test()
20 {
21     if (--iterationsLeft) {
22         frames[0].history.go(0);
23     } else {
24         gc();
25         document.getElementById("result").innerText = frames[0].document.body.textContent;
26         if (window.testRunner)
27             testRunner.notifyDone();
28     }
29 }
30 </script>
31 <div id="result">FAIL</div>
32 <iframe src="resources/createDocument-with-used-doctype-frame.html" onload="test()"></iframe>
33 </body>