Home | History | Annotate | Download | only in HTMLLinkElement
      1 <body>
      2 <div id="console"></div>
      3 <script src="../../js/resources/js-test-pre.js"></script>
      4 <script>
      5 function prefetch_onload() {
      6     testPassed('onload called!');
      7     layoutTestController.notifyDone();
      8 }
      9 if (window.layoutTestController) {
     10     layoutTestController.waitUntilDone();
     11     layoutTestController.dumpAsText();
     12     layoutTestController.dumpResourceResponseMIMETypes();
     13 }
     14 </script>
     15 <html>
     16 <p>This test will only print "PASS" or "FAIL" if link prefetches are
     17 enabled, otherwise it will show nothing below.</p>
     18 <link href="prefetch.link" rel="prefetch" onload="prefetch_onload()" onerror="testFailed('onerror')" />
     19 </html>
     20 
     21