blob: 165211d504dec661b18991ceb2eefaf16ed793f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<body>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.addEventListener('DOMContentLoaded', function() {
if (window.internals) {
var success = internals.isPreloaded("resources/image1.png") && !internals.isPreloaded("resources/fail.png");
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>
<input src=resources/fail.png type=BUTTON>
<input src=resources/image1.png type=IMAGE>
|