Index: LayoutTests/http/tests/navigation/location-reload-after-post.php |
diff --git a/LayoutTests/http/tests/navigation/location-reload-after-post.php b/LayoutTests/http/tests/navigation/location-reload-after-post.php |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b511f2b9d8eecb7a1729ad5c4df7ca9e58fb65ab |
--- /dev/null |
+++ b/LayoutTests/http/tests/navigation/location-reload-after-post.php |
@@ -0,0 +1,29 @@ |
+<body> |
Nate Chapin
2014/07/28 20:05:04
For reasons I don't understand, the layout test ht
|
+<form method=post> |
+<input type=submit></input> |
+</form> |
+<script> |
+if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ testRunner.dumpResourceLoadCallbacks(); |
+ testRunner.waitUntilDone(); |
+} |
+ |
+window.onload = function() { |
+ setTimeout(function() { |
+ if (sessionStorage.getItem("reloadAfterPost") == null) { |
+ sessionStorage.setItem("reloadAfterPost", "step1"); |
+ document.forms[0].submit(); |
+ } else if (sessionStorage.getItem("reloadAfterPost") == "step1") { |
+ sessionStorage.setItem("reloadAfterPost", "step2"); |
+ location.reload(); |
+ } else { |
+ sessionStorage.removeItem("reloadAfterPost"); |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+ } |
+ }, 0); |
+}; |
+ |
+</script> |
+</body> |