blob: 239d3e63df7eacf0a46f0736bada1fbe3b3dbdc9 [file] [log] [blame]
<html>
<head>
<script>
if (testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
}
function done()
{
if (document.getElementById("results").innerHTML == "")
document.getElementById("results").appendChild(document.createTextNode("PASS"));
if (testRunner)
testRunner.notifyDone();
}
function loaded() {
setTimeout("done()", 0);
document.getElementById("theiframe").outerHTML='';
}
</script>
</head>
<body onload="setTimeout('loaded();', 0)">
<p>
This is a test for <a href="https://bugs.webkit.org/show_bug.cgi?id=29193">bug 29193</a>:
<i>Need to prevent Javascript sleeps in unload handlers.</i> If successful, PASS should be printed below.
</p>
<p id="results" class="pass"></p>
<iframe id="theiframe" style="border: 0" src="resources/slow_unload_handler1.html">
</body>
</html>