19 lines
394 B
HTML
19 lines
394 B
HTML
<script>
|
|
if (window.testRunner) {
|
|
testRunner.dumpAsText();
|
|
testRunner.setCanOpenWindows();
|
|
testRunner.waitUntilDone();
|
|
}
|
|
|
|
function log()
|
|
{
|
|
alert("FAIL: This prompt should have been ignored.");
|
|
}
|
|
|
|
window.onbeforeunload = function() {
|
|
showModalDialog("resources/modal-dialog.html");
|
|
}
|
|
|
|
setTimeout(function() { window.location = "resources/prompt-landing-page.html" }, 0);
|
|
</script>
|