<body>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.addEventListener('DOMContentLoaded', function() {
if (window.internals) {
var success = internals.isPreloaded("resources/base-image3.png") && !internals.isPreloaded("base-image3.png") && !internals.isPreloaded("bogus/foo.html")
&& !internals.isPreloaded("resources/foo.html");
console.log(success ? "PASS" : "FAIL");
}
}, false);
</script>
This test requires DumpRenderTree to see the log of what resources are loaded.
<script src=resources/non-existant.js></script>
<script>document.write("<plaintext>");</script>
<base href="resources/foo.html">
<base href="bogus/foo.html">
<img src="base-image3.png">