Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLLinkElement / prefetch-onload.html
blob0e8ed02e1da5a335506c49baa87a03728d9f8f49
1 <html>
2 <head>
3 <script type="text/javascript">
4 function log(message)
6 var item = document.createElement("li");
7 item.appendChild(document.createTextNode(message));
8 document.getElementById("console").appendChild(item);
10 function done()
12 log("TEST PASSED.");
13 if (window.testRunner)
14 testRunner.notifyDone();
16 if (window.testRunner) {
17 testRunner.dumpAsText();
18 testRunner.waitUntilDone();
20 </script>
21 </head>
22 <body>
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()" >
26 <hr>
27 <p><ol id="console"></ol></p>
28 </body>
29 </html>