3 <script type=
"text/javascript">
6 var item
= document
.createElement("li");
7 item
.appendChild(document
.createTextNode(message
));
8 document
.getElementById("console").appendChild(item
);
13 if (window
.testRunner
)
14 testRunner
.notifyDone();
16 if (window
.testRunner
) {
17 testRunner
.dumpAsText();
18 testRunner
.waitUntilDone();
23 <p>This tests that onload events can be attached to link elements with rel=prefetch. Since prefetch links are just there as a performance optimization, the onload event is their only programatic side-effect.
</p>
24 <p>If it works you should see a message below saying the test has passed.
</p>
25 <link href=
"prefetch.link" rel=
"prefetch" onload=
"done()" >
27 <p><ol id=
"console"></ol></p>