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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/animated-png-offscreen.html

Issue 2793493002: Add paint invalidation tests for APNG images (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
(Empty)
1 <!doctype HTML>
2 <body>
3 <div style="height: 2000px; width: 2000px;">
4 <img id="targetImage">
5 </div>
6 <script src="resources/text-based-repaint.js"></script>
7 <script>
8 window.testIsAsync = true;
9
10 // Disable under-invalidation checking because the "under-invalidation" of
11 // offscreen apng animation is intentional.
12 if (window.internals)
13 internals.runtimeFlags.paintUnderInvalidationCheckingEnabled = false;
14
15 function repaintTest() {
16 if (window.internals)
17 internals.advanceImageAnimation(targetImage);
18 requestAnimationFrame(function() {
19 finishRepaintTest();
20 });
21 }
22
23 function targetImageOnload() {
24 // Scroll targetImage offscreen.
25 window.scrollTo(0, 1000);
26 runRepaintTest();
27 }
28
29 onload = function() {
30 targetImage.onload = targetImageOnload;
31 targetImage.src = "../../fast/backgrounds/resources/red-green-animated.png";
32 }
33 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698