blob: fa1d2ae5c5dbcb402984565e5421734f86194083 [file] [log] [blame]
<html>
<head>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
window.addEventListener('beforeunload', before, false);
window.onunload = unload;
function before()
{
alert( "before unload");
}
function unload()
{
alert( "unload" );
window.removeEventListener('beforeunload', before, false);
}
function load()
{
location = "data:text/html,If you didn't hit an assert you PASS.<script>if (window.testRunner) testRunner.notifyDone(); </" + "script>";
}
</script>
</head>
<body onload="load()">
start document
</body>
</html>