Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / images / webp-progressive-load.html
blob4ce0e811d77409934d3e694839fcf629c4ca59e5
1 <img style="background-color: red" >
2 <script>
3 if (window.testRunner) {
4 testRunner.dumpAsTextWithPixelResults();
5 testRunner.waitUntilDone();
8 function loadAndStall()
10 return "http://127.0.0.1:8000/resources/load-and-stall.php";
13 function webpImage()
15 return "?name=../../../fast/images/resources/large.webp&mimeType=image%2Fwebp";
18 function testDone()
20 if (window.testRunner) testRunner.notifyDone();
23 function runTest()
25 var image = document.getElementsByTagName('img')[0];
26 image.src = loadAndStall() + webpImage() + "&stallAt=4237&stallFor=1";
27 setTimeout(testDone, 3000);
30 setTimeout(runTest, 1);
31 </script>