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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/timing/longhand-timing-function.html

Issue 2979503002: Move animation timing tests to subdirectory (Closed)
Patch Set: Created 3 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style type="text/css" media="screen"> 5 <style type="text/css" media="screen">
6 .box { 6 .box {
7 position: relative; 7 position: relative;
8 height: 100px; 8 height: 100px;
9 width: 100px; 9 width: 100px;
10 margin: 20px; 10 margin: 20px;
11 background-color: blue; 11 background-color: blue;
12 } 12 }
13 13
14 #movers.moved > .box { 14 #movers.moved > .box {
15 animation: move 1s linear; 15 animation: move 1s linear;
16 } 16 }
17 17
18 #movers > #test { 18 #movers > #test {
19 animation-iteration-count: 1; 19 animation-iteration-count: 1;
20 } 20 }
21 21
22 @keyframes move { 22 @keyframes move {
23 from { left: 0px; } 23 from { left: 0px; }
24 to { left: 400px; } 24 to { left: 400px; }
25 } 25 }
26 </style> 26 </style>
27 <script src="resources/animation-test-helpers.js" type="text/javascript" cha rset="utf-8"></script> 27 <script src="../resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
28 <script type="text/javascript" charset="utf-8"> 28 <script type="text/javascript" charset="utf-8">
29 if (window.testRunner) 29 if (window.testRunner)
30 testRunner.waitUntilDone(); 30 testRunner.waitUntilDone();
31 31
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, "control", "left", 200, 10], 34 [0.5, "control", "left", 200, 10],
35 [0.5, "test", "left", 200, 10], 35 [0.5, "test", "left", 200, 10],
36 ]; 36 ];
37 37
(...skipping 10 matching lines...) Expand all
48 </head> 48 </head>
49 <body> 49 <body>
50 <p>Animations should both use a linear timing function.</p> 50 <p>Animations should both use a linear timing function.</p>
51 <div id="movers"> 51 <div id="movers">
52 <div id="control" class="box"></div> 52 <div id="control" class="box"></div>
53 <div id="test" class="box"></div> 53 <div id="test" class="box"></div>
54 </div> 54 </div>
55 <div id="result"></div> 55 <div id="result"></div>
56 </body> 56 </body>
57 </html> 57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698