6 var item
= document
.createElement("li");
7 item
.appendChild(document
.createTextNode(message
));
8 document
.getElementById("console").appendChild(item
);
13 function dne_onerror()
15 log("DNE_ONERROR called");
17 if (dne_error_count
== 2) {
18 log("SUCCESS. Two errors.");
19 testRunner
.notifyDone();
23 if (window
.testRunner
) {
24 testRunner
.waitUntilDone();
25 testRunner
.dumpAsText();
26 testRunner
.dumpResourceResponseMIMETypes();
29 <p>This test verifies that an image which is prefetched, and which is also contained as a
30 subresource of the current document can be loaded correctly as a subresource, even if the URI
33 <p>When this test succeeds, you will see nothing. When this test fails, you will crash or have another error.
34 <link rel=
"prefetch" href=
"resources/does-not-exist.jpg" onerror=
"dne_onerror()" />
35 <img src=
"resources/does-not-exist.jpg" onerror=
"dne_onerror()" />
37 <p><ol id=
"console"></ol></p>