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

Side by Side Diff: LayoutTests/animations/3d/transform-perspective.html

Issue 73493002: Fix blendToIdentity case in PerspectiveTransformOperation::blend Base URL: http://src.chromium.org/blink/trunk/
Patch Set: testcases only Created 6 years, 5 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
« 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 14 matching lines...) Expand all
25 @-webkit-keyframes anim2 { 25 @-webkit-keyframes anim2 {
26 from { -webkit-transform: perspective(1000px); } 26 from { -webkit-transform: perspective(1000px); }
27 to { -webkit-transform: none; } 27 to { -webkit-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", "webkitTransform", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0075 , 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", "webkitTransform", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0005 , 0, 0, 0, 1], 0.002],
Julien - ping for review 2014/07/08 15:09:19 It seems really weird to me that the current test
a.renevier 2015/04/02 00:14:27 First, sorry for the really late reply. It seems l
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