summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/preloader/image.html
blob: 5676c87f454263bd49ee77ff96c51373ff4c18a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<body>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

window.addEventListener('DOMContentLoaded', function() {
    if (window.internals)
        console.log(internals.isPreloaded("resources/image1.png") ? "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>
<img src=resources/image1.png>