summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/loader/unload-form.html
blob: 72c6858d0adf351a8943e11fb08da8634175f855 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<script>
addEventListener("unload", function() {
  document.getElementById("fm").submit();
}, false);
</script>
<form id="fm" action="resources/fail-and-notify-done.html" method="GET"></form>
<script>
if (window.testRunner) {
  testRunner.dumpAsText();
  testRunner.waitUntilDone();
}
window.location = "resources/pass-and-notify-done.html";
</script>