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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/timing/keyframe-timing-functions-multiple-animations.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 <html> 2 <html>
3 <head> 3 <head>
4 <style type="text/css" media="screen"> 4 <style type="text/css" media="screen">
5 div#target { 5 div#target {
6 animation-name: animation1, animation2; 6 animation-name: animation1, animation2;
7 animation-duration: 2s; 7 animation-duration: 2s;
8 animation-timing-function: steps(2); 8 animation-timing-function: steps(2);
9 background-color: red; 9 background-color: red;
10 position: relative; 10 position: relative;
(...skipping 12 matching lines...) Expand all
23 @keyframes animation2 { 23 @keyframes animation2 {
24 from { 24 from {
25 top: 0px; 25 top: 0px;
26 animation-timing-function: linear; 26 animation-timing-function: linear;
27 } 27 }
28 to { 28 to {
29 top: 200px; 29 top: 200px;
30 } 30 }
31 } 31 }
32 </style> 32 </style>
33 <script src="resources/animation-test-helpers.js" type="text/javascript" chars et="utf-8"></script> 33 <script src="../resources/animation-test-helpers.js" type="text/javascript" ch arset="utf-8"></script>
34 <script type="text/javascript" charset="utf-8"> 34 <script type="text/javascript" charset="utf-8">
35 35
36 const expectedValues = [ 36 const expectedValues = [
37 // [time, element-id, property, expected-value, tolerance] 37 // [time, element-id, property, expected-value, tolerance]
38 [0.5, "target", "left", 50, 5], 38 [0.5, "target", "left", 50, 5],
39 [0.5, "target", "top", 50, 5], 39 [0.5, "target", "top", 50, 5],
40 [1.5, "target", "left", 150, 5], 40 [1.5, "target", "left", 150, 5],
41 [1.5, "target", "top", 150, 5], 41 [1.5, "target", "top", 150, 5],
42 ]; 42 ];
43 43
44 runAnimationTest(expectedValues); 44 runAnimationTest(expectedValues);
45 </script> 45 </script>
46 </head> 46 </head>
47 <body> 47 <body>
48 <p>Tests that per-keyframe timing functions are applied correctly when an elemen t is targeted by multiple animations. The red block should move smoothly from to p-left to bottom-right. See <a href="http://crbug.com/288540">crbug.com/288540</ a>.</p> 48 <p>Tests that per-keyframe timing functions are applied correctly when an elemen t is targeted by multiple animations. The red block should move smoothly from to p-left to bottom-right. See <a href="http://crbug.com/288540">crbug.com/288540</ a>.</p>
49 <div id="target"></div> 49 <div id="target"></div>
50 <div id="result"></div> 50 <div id="result"></div>
51 </body> 51 </body>
52 </html> 52 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698