Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: LayoutTests/http/tests/navigation/location-reload-after-post.php

Issue 410223003: location.reload() after POST should re-POST (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <body>
Nate Chapin 2014/07/28 20:05:04 For reasons I don't understand, the layout test ht
2 <form method=post>
3 <input type=submit></input>
4 </form>
5 <script>
6 if (window.testRunner) {
7 testRunner.dumpAsText();
8 testRunner.dumpResourceLoadCallbacks();
9 testRunner.waitUntilDone();
10 }
11
12 window.onload = function() {
13 setTimeout(function() {
14 if (sessionStorage.getItem("reloadAfterPost") == null) {
15 sessionStorage.setItem("reloadAfterPost", "step1");
16 document.forms[0].submit();
17 } else if (sessionStorage.getItem("reloadAfterPost") == "step1") {
18 sessionStorage.setItem("reloadAfterPost", "step2");
19 location.reload();
20 } else {
21 sessionStorage.removeItem("reloadAfterPost");
22 if (window.testRunner)
23 testRunner.notifyDone();
24 }
25 }, 0);
26 };
27
28 </script>
29 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698