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

Side by Side Diff: LayoutTests/animations/matrix-anim.html

Issue 716963002: Remove property-specific handling in animation-test-helpers.js (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@animhelpercleanup
Patch Set: rm whitespace Created 6 years, 1 month 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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd"> 2 "http://www.w3.org/TR/html4/loose.dtd">
3 3
4 <html lang="en"> 4 <html lang="en">
5 <head> 5 <head>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7 <title>Animation using matrix()</title> 7 <title>Animation using matrix()</title>
8 <style type="text/css" media="screen"> 8 <style type="text/css" media="screen">
9 #box { 9 #box {
10 height: 100px; 10 height: 100px;
11 width: 100px; 11 width: 100px;
12 background-color: blue; 12 background-color: blue;
13 -webkit-animation-duration: 1s; 13 -webkit-animation-duration: 1s;
14 -webkit-animation-timing-function: linear; 14 -webkit-animation-timing-function: linear;
15 -webkit-animation-name: anim; 15 -webkit-animation-name: anim;
16 } 16 }
17 @-webkit-keyframes anim { 17 @-webkit-keyframes anim {
18 from { transform: matrix(0.707, -0.707, 0.707, 0.707, 0, 0); } 18 from { transform: matrix(0.707, -0.707, 0.707, 0.707, 0, 0); }
19 to { transform: matrix(0.707, 0.707, -0.707, 0.707, 0, 0); } 19 to { transform: matrix(0.707, 0.707, -0.707, 0.707, 0, 0); }
20 } 20 }
21 </style> 21 </style>
22 <script src="resources/animation-test-helpers.js" type="text/javascript" chars et="utf-8"></script> 22 <script src="resources/animation-test-helpers.js" type="text/javascript" chars et="utf-8"></script>
23 <script type="text/javascript" charset="utf-8"> 23 <script type="text/javascript" charset="utf-8">
24 24
25 25
26 const expectedValues = [ 26 const expectedValues = [
27 // [time, element-id, property, expected-value, tolerance] 27 // [time, element-id, property, expected-value, tolerance]
28 [0.5, "box", "webkitTransform", [1,0,0,1], 0.1], 28 [0.5, "box", "webkitTransform", [1,0,0,1,0,0], 0.1],
29 ]; 29 ];
30 30
31 runAnimationTest(expectedValues); 31 runAnimationTest(expectedValues);
32 32
33 </script> 33 </script>
34 </head> 34 </head>
35 <body> 35 <body>
36 This test performs an animation of the matrix operator. It animates over 2 secon ds. 36 This test performs an animation of the matrix operator. It animates over 2 secon ds.
37 At 1 second it takes a snapshot and expects the result to be within range. 37 At 1 second it takes a snapshot and expects the result to be within range.
38 <div id="box"> 38 <div id="box">
39 </div> 39 </div>
40 <div id="result"> 40 <div id="result">
41 </div> 41 </div>
42 </body> 42 </body>
43 </html> 43 </html>
OLDNEW
« no previous file with comments | « LayoutTests/animations/cross-fade-webkit-mask-image-expected.html ('k') | LayoutTests/animations/matrix-anim-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698