blob: 0e8ed02e1da5a335506c49baa87a03728d9f8f49 [file] [log] [blame]
<html>
<head>
<script type="text/javascript">
function log(message)
{
var item = document.createElement("li");
item.appendChild(document.createTextNode(message));
document.getElementById("console").appendChild(item);
}
function done()
{
log("TEST PASSED.");
if (window.testRunner)
testRunner.notifyDone();
}
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
</script>
</head>
<body>
<p>This tests that onload events can be attached to link elements with rel=prefetch. Since prefetch links are just there as a performance optimization, the onload event is their only programatic side-effect.</p>
<p>If it works you should see a message below saying the test has passed.</p>
<link href="prefetch.link" rel="prefetch" onload="done()" >
<hr>
<p><ol id="console"></ol></p>
</body>
</html>