<script> | |
addEventListener("unload", function() { | |
document.getElementById("fm").submit(); | |
}, false); | |
</script> | |
<form id="fm" action="resources/fail-and-notify-done.html" method="POST"></form> | |
<script> | |
if (window.testRunner) { | |
testRunner.dumpAsText(); | |
testRunner.waitUntilDone(); | |
} | |
window.location = "resources/pass-and-notify-done.html"; | |
</script> |