OLD | NEW |
(Empty) | |
| 1 <body> |
| 2 <script> |
| 3 if (window.testRunner) { |
| 4 testRunner.dumpAsText(); |
| 5 testRunner.waitUntilDone(); |
| 6 } |
| 7 |
| 8 function test() |
| 9 { |
| 10 if (window.internals) { |
| 11 console.log((internals.isPreloaded("resources/image1.png") ? "PASS" : "F
AIL") + ": image1.png"); |
| 12 console.log((internals.isPreloaded("resources/non-existant.js") ? "PASS"
: "FAIL") + ": non-existant.js"); |
| 13 } |
| 14 } |
| 15 |
| 16 window.addEventListener('DOMContentLoaded', function () { |
| 17 test(); |
| 18 setTimeout(function() { |
| 19 test(); |
| 20 if (window.testRunner) { |
| 21 testRunner.notifyDone(); |
| 22 } |
| 23 }, 100); |
| 24 }, false); |
| 25 </script> |
| 26 internals.isPreloaded() should remain the same even after |
| 27 ResourceFetcher::clearPreloads() is called (around document's load event). |
| 28 crbug.com/643621 |
| 29 <script src=resources/non-existant.js></script> |
| 30 <script>document.write("<plaintext>");</script> |
| 31 <img src=resources/image1.png> |
OLD | NEW |