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

Side by Side Diff: LayoutTests/animations/additive-transform-animations.html

Issue 14522029: Convert additive-transform-animations to ref-test (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style type="text/css"> 5 <style type="text/css">
6 .box { 6 .box {
7 height: 100px; 7 height: 100px;
8 width: 100px; 8 width: 100px;
9 background-color: blue; 9 background-color: blue;
10 } 10 }
11 11
12 #box { 12 #box {
13 -webkit-animation: anim 2s linear both; 13 -webkit-animation: anim 2s linear both;
14 } 14 }
15 15
16 @-webkit-keyframes anim { 16 @-webkit-keyframes anim {
17 from { -webkit-transform: rotate(0deg) translate(-100px, 0); } 17 from { -webkit-transform: rotate(0deg) translate(-100px, 0); }
18 to { -webkit-transform: rotate(180deg) translate(300px, 0); } 18 to { -webkit-transform: rotate(180deg) translate(300px, 0); }
19 } 19 }
20
21 #result {
22 opacity: 0; /* hide in pixel result */
23 }
24 </style> 20 </style>
25 <script src="resources/animation-test-helpers.js" type="text/javascript"></scr ipt> 21 <script src="resources/animation-test-helpers.js" type="text/javascript"></scr ipt>
26 <script type="text/javascript"> 22 <script type="text/javascript">
27 const expectedValues = [ 23 const expectedValues = [
28 // [time, element-id, property, expected-value, tolerance] 24 // [time, element-id, property, expected-value, tolerance]
29 ["anim", 1, "box", "webkitTransform", [0, 1, -1, 0, 0, 100], 0.002], 25 ["anim", 1, "box", "webkitTransform", [0, 1, -1, 0, 0, 100], 0.002],
30 ]; 26 ];
31 27
32 const doPixelTest = true; 28 const doPixelTest = true;
33 const disablePauseAnimationAPI = false; 29 const disablePauseAnimationAPI = false;
34 runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPix elTest); 30 runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPix elTest);
35 </script> 31 </script>
36 </head> 32 </head>
37 <body> 33 <body>
38 34
39 <div class="box" id="box"></div> 35 <div class="box" id="box"></div>
40 <div id="result"></div> 36 <div id="result"></div>
41 37
42 </body> 38 </body>
43 </html> 39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698