| OLD | NEW |
| 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> |
| OLD | NEW |