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

Side by Side Diff: LayoutTests/svg/repaint/image-animation-with-zoom.html

Issue 1304093006: Add a new API for testing animated images (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase harder Created 5 years, 3 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
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <!-- Test for crbug.com/375765: test passes if a green square is drawn. --> 2 <!-- Test for crbug.com/375765: test passes if a green square is drawn. -->
3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
4 <style> 4 <style>
5 html { 5 html {
6 zoom: 2.2; 6 zoom: 2.2;
7 } 7 }
8 * { 8 * {
9 margin: 0; 9 margin: 0;
10 padding: 0; 10 padding: 0;
11 } 11 }
12 </style> 12 </style>
13 <script> 13 <script>
14 window.testIsAsync = true; 14 window.testIsAsync = true;
15 window.onload = runRepaintTest; 15 window.onload = runRepaintTest;
16 16
17 function repaintTest() { 17 function repaintTest() {
18 setTimeout(function() { 18 window.internals.advanceImageAnimation(targetImage);
19 if (window.testRunner) 19 window.requestAnimationFrame(function() {
20 finishRepaintTest(); 20 finishRepaintTest();
21 }, 220); 21 });
22 }; 22 };
23 </script> 23 </script>
24 <img src="resources/animate-center.svg" width="10px" height="10px"> 24 <img id="targetImage" src="resources/animate-center.svg" width="10px" height="10 px">
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698