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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/images/gif-animated-partial-load.html

Issue 2756443005: Add a partial load test for an animated GIF image (Closed)
Patch Set: Rebaseline virtual/mojo-loading case. Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <img style="background: green" >
2 <script>
3 if (window.testRunner) {
4 testRunner.dumpAsTextWithPixelResults();
5 testRunner.waitUntilDone();
6 }
7
8 function loadAndStall()
9 {
10 return "http://127.0.0.1:8000/resources/load-and-stall.php";
11 }
12
13 function gifImage()
14 {
15 return "?name=../../../images/resources/count-down-color-test.gif&mimeType=ima ge%2Fgif";
16 }
17
18 function testDone()
19 {
20 window.testRunner && testRunner.notifyDone();
21 }
22
23 function runTest()
24 {
25 document.querySelector("img").src = loadAndStall() + gifImage() + "&stallAt=49 52&stallFor=60";
26 setTimeout(testDone, 1500);
27 }
28
29 window.onload = function() {
30 setTimeout(runTest, 0);
31 }
32 </script>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698