5 testRunner
.dumpAsText();
7 function checkForPreload() {
9 if (internals
.isPreloaded("resources/image1.png") && internals
.isPreloaded("resources/script1.js"))
13 document
.getElementsByTagName("body")[0].appendChild(document
.createTextNode(result
));
16 window
.addEventListener("DOMContentLoaded", checkForPreload
, false);
18 <script src=resources/non-existant.js
></script>
21 <script>document
.write("<plaintext>");</script>
22 This tests that resources in the body which block parsing (script, css) are preloaded
23 ahead of other resources (images). It requires DumpRenderTree to see the log of what
25 <img src=resources/image1.png
>
26 <script src=resources/script1.js
></script>