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