• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<body>
2<script>
3function log(message) {
4    var item = document.createElement("li");
5    item.appendChild(document.createTextNode(message));
6    document.getElementById("console").appendChild(item);
7}
8function prefetch_onload() {
9    log("SUCCESS!  prefetch onload called.");
10    layoutTestController.notifyDone();
11}
12if (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