blob: 4d4cc145211c04cc337c8fe3adc84abb64b46240 [file] [log] [blame]
<html>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
}
function loadAfterPrefetch()
{
window.location.assign('http://localhost:8000/cache/resources/prefetched-main-resource.py');
}
function runTest() {
var link = document.createElement("link");
link.rel = "prefetch";
link.href = "http://localhost:8000/cache/resources/prefetched-main-resource.py";
if (internals)
internals.addPrefetchLoadEventListener(link, () => { loadAfterPrefetch(); });
document.body.appendChild(link);
}
</script>
<body onload="runTest()">
</body>
</html>