| <title>Test for http://bugs.webkit.org/show_bug.cgi?id=13015</title> |
| if (location.href.indexOf("?") == -1) { |
| if (window.layoutTestController) { |
| layoutTestController.dumpAsText(); |
| layoutTestController.waitUntilDone(); |
| location.href = "resources/onunload-form-submit-success.html"; |
| document.getElementById("result").innerText = "FAIL"; |
| if (window.layoutTestController) |
| layoutTestController.notifyDone(); |
| if (location.href.indexOf("?") == -1) |
| document.myForm.submit(); |
| <body onload="test()" onunload="handleUnload()"> |