tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / fast / dom / Window / slow-unload-handler.html
1 <html>
2 <head>
3 <script>
4
5 if (layoutTestController) {
6     layoutTestController.waitUntilDone();
7     layoutTestController.dumpAsText();
8 }
9
10 function done()
11 {
12     if (document.getElementById("results").innerHTML == "")
13         document.getElementById("results").appendChild(document.createTextNode("PASS"));
14     if (layoutTestController)
15         layoutTestController.notifyDone();
16 }
17
18 function loaded() {
19     setTimeout("done()", 0);
20     document.getElementById("theiframe").outerHTML='';
21 }
22
23 </script>
24 </head>
25 <body onload="setTimeout('loaded();', 0)">
26 <p>
27     This is a test for <a href="https://bugs.webkit.org/show_bug.cgi?id=29193">bug 29193</a>:
28     <i>Need to prevent Javascript sleeps in unload handlers.</i> If successful, PASS should be printed below.
29 </p>
30 <p id="results" class="pass"></p>
31 <iframe id="theiframe" style="border: 0" src="resources/slow_unload_handler1.html">
32 </body>
33 </html>