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

Side by Side Diff: LayoutTests/transitions/transform-op-list-no-match.html

Issue 15738009: Beat the transition tests with a sanity stick. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Pass presubmit. Created 7 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
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 -webkit-transform: translateX(0px) rotate(0deg); 10 -webkit-transform: translateX(0px) rotate(0deg);
11 -webkit-transition-duration: 2s; 11 -webkit-transition-duration: 2s;
12 -webkit-transition-timing-function: linear; 12 -webkit-transition-timing-function: linear;
13 -webkit-transition-property: -webkit-transform; 13 -webkit-transition-property: -webkit-transform;
14 } 14 }
15 </style> 15 </style>
16 <script src="resources/transition-test-helpers.js"></script> 16 <script src="../animations/resources/animation-test-helpers.js"></script>
17 <script type="text/javascript"> 17 <script type="text/javascript">
18 18
19 function DegreesToRotation(angle) 19 function DegreesToRotation(angle)
20 { 20 {
21 return roundNumber(Math.cos(angle * Math.PI / 180), 5); 21 return roundNumber(Math.cos(angle * Math.PI / 180), 5);
22 } 22 }
23 23
24 const expectedValues = [ 24 const expectedValues = [
25 // [time, element-id, property, expected-value, tolerance] 25 // [time, element-id, property, expected-value, tolerance]
26 [0.5, "box", "-webkit-transform.0", DegreesToRotation(45), DegreesToRotati on(10)], 26 [0.5, "box", "-webkit-transform.0", DegreesToRotation(45), DegreesToRotati on(10)],
(...skipping 15 matching lines...) Expand all
42 Box should spin only 180 degrees even though the operation specifies a 0 to 540 degree animation. 42 Box should spin only 180 degrees even though the operation specifies a 0 to 540 degree animation.
43 This is because the operation lists don't match, so it falls back to matrix anim ation, which 43 This is because the operation lists don't match, so it falls back to matrix anim ation, which
44 normalizes the angle to between 0 and 360 degrees. 44 normalizes the angle to between 0 and 360 degrees.
45 </p> 45 </p>
46 <div id="box"> 46 <div id="box">
47 </div> 47 </div>
48 <div id="result"> 48 <div id="result">
49 </div> 49 </div>
50 </body> 50 </body>
51 </html> 51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698