blob: 239d3e63df7eacf0a46f0736bada1fbe3b3dbdc9 [file] [log] [blame]
jam@chromium.org9e5f0f82009-09-22 00:19:42 +00001<html>
2<head>
jam@chromium.org9e5f0f82009-09-22 00:19:42 +00003<script>
4
rniwa@webkit.orgada3c202012-06-20 03:28:42 +00005if (testRunner) {
6 testRunner.waitUntilDone();
7 testRunner.dumpAsText();
jam@chromium.org9e5f0f82009-09-22 00:19:42 +00008}
9
10function done()
11{
12 if (document.getElementById("results").innerHTML == "")
13 document.getElementById("results").appendChild(document.createTextNode("PASS"));
rniwa@webkit.orgada3c202012-06-20 03:28:42 +000014 if (testRunner)
15 testRunner.notifyDone();
jam@chromium.org9e5f0f82009-09-22 00:19:42 +000016}
17
18function 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>