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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/images/bmp-partial-load.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 <img style="background: green" > 1 <img style="background: green" >
2 <script> 2 <script>
3 if (window.testRunner) { 3 if (window.testRunner) {
4 testRunner.dumpAsTextWithPixelResults(); 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 bmpImage() 13 function bmpImage()
14 { 14 {
15 return "?name=../../../fast/images/resources/lenna.bmp&mimeType=image%2Fbmp" ; 15 return "?name=../../../images/resources/lenna.bmp&mimeType=image%2Fbmp";
16 } 16 }
17 17
18 function testDone() 18 function testDone()
19 { 19 {
20 window.testRunner && testRunner.notifyDone(); 20 window.testRunner && testRunner.notifyDone();
21 } 21 }
22 22
23 function runTest() 23 function runTest()
24 { 24 {
25 document.querySelector("img").src = loadAndStall() + bmpImage() + "&stallAt= 104000&stallFor=60"; 25 document.querySelector("img").src = loadAndStall() + bmpImage() + "&stallAt= 104000&stallFor=60";
26 setTimeout(testDone, 500); 26 setTimeout(testDone, 500);
27 } 27 }
28 28
29 window.onload = function() { 29 window.onload = function() {
30 setTimeout(runTest, 0); 30 setTimeout(runTest, 0);
31 } 31 }
32 </script> 32 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698