Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / images / png-partial-load.html
blob6f93e95e0d6d0e920ee7837dd959db5770f0c99a
1 <img style="background-color: blue" >
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 pngImage()
15 return "?name=../../../fast/images/resources/dice.png&mimeType=image%2Fpng";
18 function testDone()
20 if (window.testRunner)
21 testRunner.notifyDone();
24 function runTest()
26 document.querySelector("img").src = loadAndStall() + pngImage() + "&stallAt=45057&stallFor=60";
27 setTimeout(testDone, 500);
30 window.onload = function() {
31 setTimeout(runTest, 0);
33 </script>