4 <form id=
"fm" action=
"resources/fail-and-notify-done.html" method=
"POST"></form>
7 function submitForm() {
8 document
.getElementById("fm").submit();
9 window
.removeEventListener('unload', submitForm
);
12 if (window
.testRunner
) {
13 testRunner
.dumpAsText();
14 testRunner
.waitUntilDone();
17 addEventListener("unload", submitForm
);
19 window
.location
= "resources/pass-and-notify-done.html";