4 testRunner
.dumpAsText();
6 window
.addEventListener('DOMContentLoaded', function() {
7 if (window
.internals
) {
8 var success
= internals
.isPreloaded("resources/image1.png") && !internals
.isPreloaded("resources/fail.png");
9 console
.log(success
? "PASS" : "FAIL");
13 This test requires DumpRenderTree to see the log of what resources are loaded.
14 <script src=resources/non-existant.js
></script>
15 <script>document
.write("<plaintext>");</script>
16 <input src=resources/fail.png type=BUTTON
>
17 <input src=resources/image1.png type=IMAGE
>