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" : "FA IL"); | |
12 } | |
13 | |
14 window.addEventListener('DOMContentLoaded', function () { | |
15 test(); | |
16 setTimeout(function() { | |
17 test(); | |
18 if (window.testRunner) { | |
19 testRunner.notifyDone(); | |
20 } | |
21 }, 100); | |
22 }, false); | |
23 </script> | |
24 internals.isPreloaded() should remain the same even after | |
25 ResourceFetcher::clearPreloads() is called (around document's load event). | |
26 crbug.com/643621 | |
27 <script src=resources/non-existant.js></script> | |
Yoav Weiss
2016/09/15 06:57:03
Can you also test that non-existant.js isPreloaded
hiroshige
2016/09/15 08:04:40
Done.
| |
28 <script>document.write("<plaintext>");</script> | |
29 <img src=resources/image1.png> | |
OLD | NEW |