OLD | NEW |
(Empty) | |
| 1 <html> |
| 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. |
| 4 Due to a regression in http://src.chromium.org/viewvc/blink?revision=148684&view
=revision, 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. |
| 6 <script> |
| 7 if (window.testRunner) { |
| 8 testRunner.dumpAsText(); |
| 9 testRunner.waitUntilDone(); |
| 10 } |
| 11 |
| 12 function test() { |
| 13 if (window.localStorage.getItem("finish-during-reload") == null) { |
| 14 window.localStorage.setItem("finish-during-reload", "reload") |
| 15 var img = document.createElement("img"); |
| 16 img.src = "resources/slow-image.php"; |
| 17 document.body.appendChild(img); |
| 18 if (window.internals) |
| 19 internals.forceReload(false); |
| 20 } else { |
| 21 window.localStorage.clear(); |
| 22 if (window.testRunner) { |
| 23 testRunner.dumpBackForwardList(); |
| 24 testRunner.notifyDone(); |
| 25 } |
| 26 } |
| 27 } |
| 28 </script> |
| 29 </body> |
| 30 </html> |
OLD | NEW |