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