jam@chromium.org | 9e5f0f8 | 2009-09-22 00:19:42 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
jam@chromium.org | 9e5f0f8 | 2009-09-22 00:19:42 +0000 | [diff] [blame] | 3 | <script> |
| 4 | |
rniwa@webkit.org | ada3c20 | 2012-06-20 03:28:42 +0000 | [diff] [blame] | 5 | if (testRunner) { |
| 6 | testRunner.waitUntilDone(); |
| 7 | testRunner.dumpAsText(); |
jam@chromium.org | 9e5f0f8 | 2009-09-22 00:19:42 +0000 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | function done() |
| 11 | { |
| 12 | if (document.getElementById("results").innerHTML == "") |
| 13 | document.getElementById("results").appendChild(document.createTextNode("PASS")); |
rniwa@webkit.org | ada3c20 | 2012-06-20 03:28:42 +0000 | [diff] [blame] | 14 | if (testRunner) |
| 15 | testRunner.notifyDone(); |
jam@chromium.org | 9e5f0f8 | 2009-09-22 00:19:42 +0000 | [diff] [blame] | 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> |