Use testRunner instead of layoutTestController in ietestcenter, inspector, java,...
[WebKit-https.git] / LayoutTests / loader / load-defer-resume-crash.html
1 <html>
2 <script>
3 if (window.testRunner) {
4     testRunner.dumpAsText();
5     testRunner.waitUntilDone();
6 }
7
8 function run() {
9     var frameElement = document.createElement('iframe')
10     frameElement.setAttribute("src", "resources/images.html");
11     document.getElementById("frameDiv").appendChild(frameElement);
12     if (window.testRunner) {
13         testRunner.setDefersLoading(true);
14         setTimeout("testRunner.setDefersLoading(false);testRunner.notifyDone();",1000);
15     } else
16         alert("Deferring loads");
17 }
18
19 </script>
20 <body onload='run()'>
21 <p>For the test to pass there should be no crash.</p>
22 <div id="frameDiv"></div>
23 </body>
24 </html>