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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/history/reload-during-load-after-load-event.html

Issue 2471733003: Update or remove any remaining references to viewvc/blink. (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
1 <html> 1 <html>
2 <body onload="setTimeout(test, 0);"> 2 <body onload="setTimeout(test, 0);">
3 This tests starting a new resource load after the load event has finished, then reloading while that load is still in progress. 3 This tests starting a new resource load after the load event has finished, then reloading while that load is still in progress.
4 Due to a regression in http://src.chromium.org/viewvc/blink?revision=148684&view =revision, we would overwrite the load type such that 4 Due to a regression in https://chromium.googlesource.com/chromium/src/+/8b913deb 7165a50daa13e6b64300e550cf62a47e, we would overwrite the load type such that
5 the reload will still be executed correctly, but the history entry will be creat ed as though it was a standard load. 5 the reload will still be executed correctly, but the history entry will be creat ed as though it was a standard load.
6 <script> 6 <script>
7 if (window.testRunner) { 7 if (window.testRunner) {
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 testRunner.waitUntilDone(); 9 testRunner.waitUntilDone();
10 } 10 }
11 11
12 function test() { 12 function test() {
13 if (window.localStorage.getItem("finish-during-reload") == null) { 13 if (window.localStorage.getItem("finish-during-reload") == null) {
14 window.localStorage.setItem("finish-during-reload", "reload") 14 window.localStorage.setItem("finish-during-reload", "reload")
15 var img = document.createElement("img"); 15 var img = document.createElement("img");
16 img.src = "resources/slow-image.php"; 16 img.src = "resources/slow-image.php";
17 document.body.appendChild(img); 17 document.body.appendChild(img);
18 if (window.internals) 18 if (window.internals)
19 internals.forceReload(false); 19 internals.forceReload(false);
20 } else { 20 } else {
21 window.localStorage.clear(); 21 window.localStorage.clear();
22 if (window.testRunner) { 22 if (window.testRunner) {
23 testRunner.dumpBackForwardList(); 23 testRunner.dumpBackForwardList();
24 testRunner.notifyDone(); 24 testRunner.notifyDone();
25 } 25 }
26 } 26 }
27 } 27 }
28 </script> 28 </script>
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698