<!DOCTYPE html> | |
<script> | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
</script> | |
<script src="http://127.0.0.1:8000/resources/slow-script.pl?delay=1000"></script> | |
<script src="http://127.0.0.1:8000/resources/checkPreload.js"></script> | |
<body> | |
This test makes sure that the Preload scanner preloads the image resource. | |
<br/> | |
<script> | |
checkForPreload("resources/preload-test.jpg", true); | |
</script> | |
<img srcset="resources/preload-test.jpg"> | |
</body> |