summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/http/tests/loading/preload-image-src.html
blob: aa54ca4b9d636e968e831f50f6bfb9867a3f83e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<html>
<head>
<script src="/js-test-resources/js-test.js"></script>
<script src="http://127.0.0.1:8000/resources/slow-script.pl?delay=100"></script>
</head>
<body>
<script>
    shouldBeTrue("internals.isPreloaded('resources/base-image1.png');");
    shouldBeTrue("internals.isPreloaded('resources/base-image2.png');");
    shouldBeFalse("internals.isPreloaded('resources/base-image3.png');");
</script>
<div>This test passes if the image (defined in the src attribute) is preloaded.</div>
<img src="resources/base-image1.png">
<img src="resources/base-image2.png" src="resources/base-image3.png">
</body>
</html>