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

Side by Side Diff: LayoutTests/animations/simultaneous-start-transform.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>Test simultaneous starting of two animations</title> 7 <title>Test simultaneous starting of two animations</title>
8 <style type="text/css" media="screen"> 8 <style type="text/css" media="screen">
9 .box { 9 .box {
10 position: absolute; 10 position: absolute;
(...skipping 16 matching lines...) Expand all
27 #box2 { 27 #box2 {
28 left: 160px; 28 left: 160px;
29 background-color: red; 29 background-color: red;
30 } 30 }
31 </style> 31 </style>
32 <script src="resources/animation-test-helpers.js" type="text/javascript" chars et="utf-8"></script> 32 <script src="resources/animation-test-helpers.js" type="text/javascript" chars et="utf-8"></script>
33 <script type="text/javascript" charset="utf-8"> 33 <script type="text/javascript" charset="utf-8">
34 34
35 const expectedValues = [ 35 const expectedValues = [
36 // [time, element-id, property, expected-value, tolerance] 36 // [time, element-id, property, expected-value, tolerance]
37 [2, "box1", "webkitTransform", [ 0.309017, 0.951057 ], 0.05], 37 [2, "box1", "webkitTransform", [ 0.309017, 0.951057, -0.951057, 0.309017, 0, 0 ], 0.05],
38 [2, "box2", "webkitTransform", [ 0.309017, 0.951057 ], 0.05], 38 [2, "box2", "webkitTransform", [ 0.309017, 0.951057, -0.951057, 0.309017, 0, 0 ], 0.05],
39 [2, ["box1", "box2"], "webkitTransform", "", 0], 39 [2, ["box1", "box2"], "webkitTransform", "", 0],
40 [5, "box1", "webkitTransform", [ -1, 0 ], 0.05], 40 [5, "box1", "webkitTransform", [ -1, 0, 0, -1, 0, 0 ], 0.05],
41 [5, "box2", "webkitTransform", [ -1, 0 ], 0.05], 41 [5, "box2", "webkitTransform", [ -1, 0, 0, -1, 0, 0 ], 0.05],
42 [5, ["box1", "box2"], "webkitTransform", "", 0], 42 [5, ["box1", "box2"], "webkitTransform", "", 0],
43 [8, "box1", "webkitTransform", [ 0.309017, -0.951057 ], 0.05], 43 [8, "box1", "webkitTransform", [ 0.309017, -0.951057, 0.951057, 0.309017, 0, 0 ], 0.05],
44 [8, "box2", "webkitTransform", [ 0.309017, -0.951057 ], 0.05], 44 [8, "box2", "webkitTransform", [ 0.309017, -0.951057, 0.951057, 0.309017, 0, 0 ], 0.05],
45 [8, ["box1", "box2"], "webkitTransform", "", 0], 45 [8, ["box1", "box2"], "webkitTransform", "", 0],
46 ]; 46 ];
47 47
48 runAnimationTest(expectedValues); 48 runAnimationTest(expectedValues);
49 49
50 </script> 50 </script>
51 </head> 51 </head>
52 <body> 52 <body>
53 This test performs an animation of the transform property. It animates over 10 s econds. 53 This test performs an animation of the transform property. It animates over 10 s econds.
54 It takes 3 snapshots and expects each result to be within a specified range. 54 It takes 3 snapshots and expects each result to be within a specified range.
55 <div id="box1" class="box"> 55 <div id="box1" class="box">
56 </div> 56 </div>
57 <div id="box2" class="box"> 57 <div id="box2" class="box">
58 </div> 58 </div>
59 <div id="result" style="position:absolute; top:150px"> 59 <div id="result" style="position:absolute; top:150px">
60 </div> 60 </div>
61 </body> 61 </body>
62 </html> 62 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698