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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/images/gif-animated-partial-load.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/images/gif-animated-partial-load.html b/third_party/WebKit/LayoutTests/http/tests/images/gif-animated-partial-load.html
new file mode 100644
index 0000000000000000000000000000000000000000..5e8e125d3061d63524c6c3c5ca8ab5d318965649
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/images/gif-animated-partial-load.html
@@ -0,0 +1,32 @@
+<img style="background: green" >
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsTextWithPixelResults();
+ testRunner.waitUntilDone();
+}
+
+function loadAndStall()
+{
+ return "http://127.0.0.1:8000/resources/load-and-stall.php";
+}
+
+function gifImage()
+{
+ return "?name=../../../images/resources/count-down-color-test.gif&mimeType=image%2Fgif";
+}
+
+function testDone()
+{
+ window.testRunner && testRunner.notifyDone();
+}
+
+function runTest()
+{
+ document.querySelector("img").src = loadAndStall() + gifImage() + "&stallAt=4952&stallFor=60";
+ setTimeout(testDone, 1500);
+}
+
+window.onload = function() {
+ setTimeout(runTest, 0);
+}
+</script>
« 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