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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/as-image/animated-svg-as-image-no-fixed-intrinsic-size.html

Issue 1972273002: Let repaint tests test pixels by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../fast/repaint/resources/text-based-repaint.js" type="text/ja vascript"></script> 3 <script src="../../fast/repaint/resources/repaint.js" type="text/javascript">< /script>
4 <script type="text/javascript"> 4 <script type="text/javascript">
5 window.testIsAsync = true; 5 window.testIsAsync = true;
6 // These svg files are animated automatically, so have flaky repaint rect 6 // These svg files are animated automatically, so have flaky repaint rect
7 // output depending on when repaint rect capturing starts. 7 // output depending on when repaint rect capturing starts.
8 window.outputRepaintRects = false; 8 window.outputRepaintRects = false;
9 function repaintTest() { 9 function repaintTest() {
10 if (!window.testRunner) 10 if (!window.testRunner)
11 return; 11 return;
12 12
13 // The animation lasts 100ms so skip 12 (12*1s/120=100ms) frames to be sure. 13 // The animation lasts 100ms so skip 12 (12*1s/120=100ms) frames to be sure.
14 for (var i = 0; i < 12; i++) 14 for (var i = 0; i < 12; i++)
15 window.internals.advanceImageAnimation(image); 15 window.internals.advanceImageAnimation(image);
16 16
17 window.requestAnimationFrame(function() { 17 window.requestAnimationFrame(function() {
18 finishRepaintTest(); 18 finishRepaintTest();
19 }); 19 });
20 } 20 }
21 </script> 21 </script>
22 <style type="text/css" media="screen"> 22 <style type="text/css" media="screen">
23 img { 23 img {
24 margin: 10px; 24 margin: 10px;
25 } 25 }
26 </style> 26 </style>
27 </head> 27 </head>
28 <body onload="runRepaintAndPixelTest()"> 28 <body onload="runRepaintTest()">
29 <p>Images should redraw correctly when SVG animation runs</p> 29 <p>Images should redraw correctly when SVG animation runs</p>
30 <img id="image" src="resources/animated-rect-fixed-size.svg"> 30 <img id="image" src="resources/animated-rect-fixed-size.svg">
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698