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