• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<body>
2<div id="console"></div>
3<script src="../../js/resources/js-test-pre.js"></script>
4<script>
5function prefetch_onload() {
6    testPassed('onload called!');
7    layoutTestController.notifyDone();
8}
9if (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
17enabled, otherwise it will show nothing below.</p>
18<link href="prefetch.link" rel="prefetch" onload="prefetch_onload()" onerror="testFailed('onerror')" />
19</html>
20
21