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

Unified Diff: LayoutTests/http/tests/history/reload-during-load-after-load-event.html

Issue 17519002: Reland r152781 - "Fix a history bug where a reload is given a standard load's history entry." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/history/reload-during-load-after-load-event-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/history/reload-during-load-after-load-event.html
diff --git a/LayoutTests/http/tests/history/reload-during-load-after-load-event.html b/LayoutTests/http/tests/history/reload-during-load-after-load-event.html
new file mode 100644
index 0000000000000000000000000000000000000000..6610c540ade64b592c63882113428ec9fdfac5c2
--- /dev/null
+++ b/LayoutTests/http/tests/history/reload-during-load-after-load-event.html
@@ -0,0 +1,30 @@
+<html>
+<body onload="setTimeout(test, 0);">
+This tests starting a new resource load after the load event has finished, then reloading while that load is still in progress.
+Due to a regression in http://src.chromium.org/viewvc/blink?revision=148684&view=revision, we would overwrite the load type such that
+the reload will still be executed correctly, but the history entry will be created as though it was a standard load.
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+
+function test() {
+ if (window.localStorage.getItem("finish-during-reload") == null) {
+ window.localStorage.setItem("finish-during-reload", "reload")
+ var img = document.createElement("img");
+ img.src = "resources/slow-image.php";
+ document.body.appendChild(img);
+ if (window.internals)
+ internals.forceReload(false);
+ } else {
+ window.localStorage.clear();
+ if (window.testRunner) {
+ testRunner.dumpBackForwardList();
+ testRunner.notifyDone();
+ }
+ }
+}
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/history/reload-during-load-after-load-event-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698