| OLD | NEW |
| (Empty) |
| 1 <iframe style="background-color: blue; width: 320px; height: 240px;"></iframe> | |
| 2 <!-- | |
| 3 Tests that when a progressive png is loaded as document, the image is shown | |
| 4 progressively during loading. | |
| 5 The result image should show the dice image partially. | |
| 6 --> | |
| 7 <script> | |
| 8 if (window.testRunner) { | |
| 9 testRunner.dumpAsTextWithPixelResults(); | |
| 10 testRunner.waitUntilDone(); | |
| 11 } | |
| 12 | |
| 13 function loadAndStall() | |
| 14 { | |
| 15 return "http://127.0.0.1:8000/resources/load-and-stall.php"; | |
| 16 } | |
| 17 | |
| 18 function pngImage() | |
| 19 { | |
| 20 return "?name=../../../fast/images/resources/dice.png&mimeType=image%2Fpng"; | |
| 21 } | |
| 22 | |
| 23 function testDone() | |
| 24 { | |
| 25 if (window.testRunner) { | |
| 26 window.stop(); | |
| 27 testRunner.notifyDone(); | |
| 28 } | |
| 29 } | |
| 30 | |
| 31 function runTest() | |
| 32 { | |
| 33 document.querySelector("iframe").src = loadAndStall() + pngImage() + "&stall
At=45057&stallFor=60"; | |
| 34 setTimeout(testDone, 500); | |
| 35 } | |
| 36 | |
| 37 window.onload = function() { | |
| 38 setTimeout(runTest, 0); | |
| 39 } | |
| 40 </script> | |
| OLD | NEW |