Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / images / bmp-partial-load.html
blobd68c9ce17a370b9a2e118e1fa92b29c0102d5130
1 <img style="background: green" >
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 bmpImage()
15 return "?name=../../../fast/images/resources/lenna.bmp&mimeType=image%2Fbmp";
18 function testDone()
20 window.testRunner && testRunner.notifyDone();
23 function runTest()
25 document.querySelector("img").src = loadAndStall() + bmpImage() + "&stallAt=104000&stallFor=60";
26 setTimeout(testDone, 500);
29 window.onload = function() {
30 setTimeout(runTest, 0);
32 </script>