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

Side by Side Diff: LayoutTests/animations/3d/transform-perspective.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
« no previous file with comments | « no previous file | LayoutTests/animations/3d/transform-perspective-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 }
(...skipping 13 matching lines...) Expand all
24 24
25 @-webkit-keyframes anim2 { 25 @-webkit-keyframes anim2 {
26 from { transform: perspective(1000px); } 26 from { transform: perspective(1000px); }
27 to { transform: none; } 27 to { transform: none; }
28 } 28 }
29 </style> 29 </style>
30 <script src="../resources/animation-test-helpers.js" type="text/javascript"></ script> 30 <script src="../resources/animation-test-helpers.js" type="text/javascript"></ script>
31 <script type="text/javascript"> 31 <script type="text/javascript">
32 const expectedValues = [ 32 const expectedValues = [
33 // [time, element-id, property, expected-value, tolerance] 33 // [time, element-id, property, expected-value, tolerance]
34 [0.5, "box", "webkitTransform", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0075 , 0, 0, 0, 1], 0.002], 34 [0.5, "box", "transform", "matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0 075, 0, 0, 0, 1)", 0.002],
35 [0.5, "box2", "webkitTransform", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0019 9, 0, 0, 0, 1], 0.002], 35 [0.5, "box2", "transform", "matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0 0199, 0, 0, 0, 1)", 0.002],
36 ]; 36 ];
37 37
38 function setupTest() 38 function setupTest()
39 { 39 {
40 var box = document.getElementById('box'); 40 var box = document.getElementById('box');
41 box.style.webkitTransform = 'perspective(1000px) rotateX(90deg)'; 41 box.style.webkitTransform = 'perspective(1000px) rotateX(90deg)';
42 } 42 }
43 43
44 runAnimationTest(expectedValues); 44 runAnimationTest(expectedValues);
45 </script> 45 </script>
46 </head> 46 </head>
47 <body> 47 <body>
48 48
49 <div class="box" id="box"></div> 49 <div class="box" id="box"></div>
50 <div class="box" id="box2"></div> 50 <div class="box" id="box2"></div>
51 <div id="result"></div> 51 <div id="result"></div>
52 52
53 </body> 53 </body>
54 </html> 54 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/animations/3d/transform-perspective-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698