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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/multiple-animations-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
(Empty)
1 <html>
2 <head>
3 <style>
4 #box {
5 position: relative;
6 height: 100px;
7 width: 100px;
8 margin: 20px;
9 background-color: red;
10 animation:
11 horizontal 2s ease-in 1 alternate,
12 vertical 2s ease-out 1 alternate;
13 }
14
15 @keyframes horizontal {
16 from { left: 0px; }
17 to { left: 200px; }
18 }
19
20 @keyframes vertical {
21 from { top: 0px; }
22 to { top: 200px; }
23 }
24 </style>
25 <script src="resources/animation-test-helpers.js" type="text/javascript" cha rset="utf-8"></script>
26 <script type="text/javascript" charset="utf-8">
27 const expectedValues = [
28 // [time, element-id, property, expected-value, tolerance]
29 [0.5, "box", "left", 18, 10],
30 [1.5, "box", "left", 124, 10],
31 [0.5, "box", "top", 75, 10],
32 [1.5, "box", "top", 181, 10],
33 ];
34
35 runAnimationTest(expectedValues);
36 </script>
37 </head>
38 <body>
39 <div id="box"></div>
40 <div id="result"></div>
41 </body>
42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698