1 <body> 2 <script> 3 function log(message) { 4 var item = document.createElement("li"); 5 item.appendChild(document.createTextNode(message)); 6 document.getElementById("console").appendChild(item); 7 } 8 function prefetch_onload() { 9 log("SUCCESS! prefetch onload called."); 10 layoutTestController.notifyDone(); 11 } 12 if (window.layoutTestController) { 13 layoutTestController.waitUntilDone(); 14 layoutTestController.dumpAsText(); 15 layoutTestController.dumpResourceResponseMIMETypes(); 16 } 17 </script> 18 <html> 19 <p>This test requires DumpRenderTree to see the log of what resources are loaded. 20 <link href="prefetch.link" rel="prefetch" onload="prefetch_onload()"> 21 <p><ol id="console"></ol> 22 </html> 23 24