summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/HTMLLinkElement/prefetch-beforeload.html
blob: 27a62af3e23257cd3f039060d2f4c185c3598046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<body>
<div id="console"></div>
<script src="../../js/resources/js-test-pre.js"></script>
<script>
if (window.layoutTestController) {
    layoutTestController.dumpAsText();
}
</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" onbeforeload="testPassed('beforeload called');return false" onload="testFailed('onload')" onerror="testFailed('onerror')" />
</html>