Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / events / stop-load-in-unload-handler-using-document-write.html
1 <pre id="console"></pre>
2 <script>
3     if (window.testRunner) {
4         testRunner.dumpAsText();
5         testRunner.waitUntilDone();
6     }
7     function log(msg)
8     {
9         document.getElementById('console').appendChild(document.createTextNode(msg + "\n"));
10     }
11
12     function pass()
13     {
14         log("PASS");
15         if (window.testRunner)
16             testRunner.notifyDone();
17     }
18
19     function fail()
20     {
21         log("FAIL");
22         if (window.testRunner)
23             testRunner.notifyDone();
24     }
25 </script>
26 <iframe src="resources/subframe-stop-load-in-unload-handler-using-document-write.html"></iframe>