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

Side by Side Diff: LayoutTests/http/tests/images/webp-partial-load.html

Issue 24438004: Rename testRunner.dumpAsText(true) to testRunner.dumpAsTextWithPixelResults() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: more tests Created 7 years, 3 months 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 | Annotate | Revision Log
OLDNEW
1 <img style="background-color: blue" > 1 <img style="background-color: blue" >
2 <script> 2 <script>
3 if (window.testRunner) { 3 if (window.testRunner) {
4 testRunner.dumpAsText(pixelTest = true); 4 testRunner.dumpAsTextWithPixelResults();
5 testRunner.waitUntilDone(); 5 testRunner.waitUntilDone();
6 } 6 }
7 7
8 function loadAndStall() 8 function loadAndStall()
9 { 9 {
10 return "http://127.0.0.1:8000/resources/load-and-stall.php"; 10 return "http://127.0.0.1:8000/resources/load-and-stall.php";
11 } 11 }
12 12
13 function webpImage() 13 function webpImage()
14 { 14 {
15 return "?name=../../../fast/images/resources/test.webp&mimeType=image%2Fwebp "; 15 return "?name=../../../fast/images/resources/test.webp&mimeType=image%2Fwebp ";
16 } 16 }
17 17
18 function testDone() 18 function testDone()
19 { 19 {
20 if (window.testRunner) testRunner.notifyDone(); 20 if (window.testRunner) testRunner.notifyDone();
21 } 21 }
22 22
23 function runTest() 23 function runTest()
24 { 24 {
25 var image = document.getElementsByTagName('img')[0]; 25 var image = document.getElementsByTagName('img')[0];
26 image.src = loadAndStall() + webpImage() + "&stallAt=2400&stallFor=60"; 26 image.src = loadAndStall() + webpImage() + "&stallAt=2400&stallFor=60";
27 setTimeout(testDone, 500); 27 setTimeout(testDone, 500);
28 } 28 }
29 29
30 setTimeout(runTest, 1); 30 setTimeout(runTest, 1);
31 </script> 31 </script>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/images/png-progressive-load.html ('k') | LayoutTests/http/tests/images/webp-progressive-load.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698