Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/images/png-partial-load-as-document.html

Issue 2496663002: Merge css3/image/ and fast/images/ to images/ (Closed)
Patch Set: Address failing tests (3 of them) Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698