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

Side by Side Diff: third_party/WebKit/LayoutTests/images/animated-png.html

Issue 2618633004: Add support for Animated PNG (Closed)
Patch Set: Respond to comments 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
OLDNEW
(Empty)
1 <html>
2 <head>
3 <title>APNG reftest: when animation ends, compare its last frame against the ref erence static PNG.</title>
4 <style>
5 img { margin: 1px; }
6 </style>
7 </head>
8 <link rel="match" href="animated-png-expected.html">
9 <body style="margin: 1px">
10 <img id="apng00" src=resources/apng00.png><img id="apng01" src=resources/apng01. png><img id="apng02" src=resources/apng02.png><img id="apng04" src=resources/apn g04.png><img id="apng08" src=resources/apng08.png><br>
11 <img id="apng10" src=resources/apng10.png><img id="apng11" src=resources/apng11. png><img id="apng12" src=resources/apng12.png><img id="apng14" src=resources/apn g14.png><img id="apng18" src=resources/apng18.png><br>
12 <!-- These images are slightly different from the reference images. Disable for now.
13 <img id="apng24" src=resources/apng24.png><img id="apng26" src=resources/apng26. png>
14 -->
15 <script>
16 if (window.testRunner) {
17 window.onload = function() {
18 testRunner.waitUntilDone();
19
20 // Jump to the final frame for each image.
21 for (var i = 0; i < 9; i++)
22 window.internals.advanceImageAnimation(apng01);
23
24 for (var i = 0; i < 9; i++)
25 window.internals.advanceImageAnimation(apng02);
26
27 for (var i = 0; i < 12; i++)
28 window.internals.advanceImageAnimation(apng04);
29
30 for (var i = 0; i < 12; i++)
31 window.internals.advanceImageAnimation(apng08);
32
33 for (var i = 0; i < 3; i++)
34 window.internals.advanceImageAnimation(apng10);
35
36 for (var i = 0; i < 9; i++)
37 window.internals.advanceImageAnimation(apng11);
38
39 for (var i = 0; i < 9; i++)
40 window.internals.advanceImageAnimation(apng12);
41
42 for (var i = 0; i < 12; i++)
43 window.internals.advanceImageAnimation(apng14);
44
45 for (var i = 0; i < 12; i++)
46 window.internals.advanceImageAnimation(apng18);
47
48 /*
49 for (var i = 0; i < 1; i++)
50 window.internals.advanceImageAnimation(apng24);
51
52 for (var i = 0; i < 1; i++)
53 window.internals.advanceImageAnimation(apng26);
54 */
55
56 requestAnimationFrame(function() {
57 testRunner.notifyDone();
58 });
59 }
60 }
61 </script>
62 </body>
63 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698