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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/animated-png.html

Issue 2793493002: Add paint invalidation tests for APNG images (Closed)
Patch Set: 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
Index: third_party/WebKit/LayoutTests/paint/invalidation/animated-png.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/animated-png.html b/third_party/WebKit/LayoutTests/paint/invalidation/animated-png.html
new file mode 100644
index 0000000000000000000000000000000000000000..5dd75c671927654c16128bbd18cc4ed2c1716c8a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/animated-png.html
@@ -0,0 +1,22 @@
+<!doctype HTML>
+<body>
+<div style="height: 2000px; width: 2000px;">
+ <img id="targetImage">
+</div>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+window.testIsAsync = true;
+
+function repaintTest() {
+ if (window.internals)
+ internals.advanceImageAnimation(targetImage);
+ requestAnimationFrame(function() {
+ finishRepaintTest();
+ });
+}
+
+window.onload = function() {
+ targetImage.onload = runRepaintTest;
+ targetImage.src="../../fast/backgrounds/resources/red-green-animated.png";
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698