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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/motion-offset-interpolation.html

Issue 1881333002: Use neutralKeyframe sentinal instead of '' for interpolation-test.js tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix composition test code Created 4 years, 8 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 <meta charset="UTF-8"> 2 <meta charset="UTF-8">
3 <style> 3 <style>
4 .parent { 4 .parent {
5 motion-offset: 30px; 5 motion-offset: 30px;
6 } 6 }
7 .target { 7 .target {
8 width: 10px; 8 width: 10px;
9 height: 10px; 9 height: 10px;
10 background-color: black; 10 background-color: black;
11 motion-path: path("M0 0H 400"); 11 motion-path: path("M0 0H 400");
12 motion-offset: 10px; 12 motion-offset: 10px;
13 } 13 }
14 .expected { 14 .expected {
15 background-color: green; 15 background-color: green;
16 } 16 }
17 </style> 17 </style>
18 <body> 18 <body>
19 <script src="resources/interpolation-test.js"></script> 19 <script src="resources/interpolation-test.js"></script>
20 <script> 20 <script>
21 assertInterpolation({ 21 assertInterpolation({
22 property: 'motion-offset', 22 property: 'motion-offset',
23 from: '', 23 from: neutralKeyframe,
24 to: '20px', 24 to: '20px',
25 }, [ 25 }, [
26 {at: -0.3, is: '7px'}, 26 {at: -0.3, is: '7px'},
27 {at: 0, is: '10px'}, 27 {at: 0, is: '10px'},
28 {at: 0.3, is: '13px'}, 28 {at: 0.3, is: '13px'},
29 {at: 0.6, is: '16px'}, 29 {at: 0.6, is: '16px'},
30 {at: 1, is: '20px'}, 30 {at: 1, is: '20px'},
31 {at: 1.5, is: '25px'}, 31 {at: 1.5, is: '25px'},
32 ]); 32 ]);
33 33
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // with different (but equivalent) calc expressions. 92 // with different (but equivalent) calc expressions.
93 {at: -0.3, is: 'calc(13px + -30%)'}, 93 {at: -0.3, is: 'calc(13px + -30%)'},
94 {at: 0, is: '10px'}, 94 {at: 0, is: '10px'},
95 {at: 0.3, is: 'calc(7px + 30%)'}, 95 {at: 0.3, is: 'calc(7px + 30%)'},
96 {at: 0.6, is: 'calc(4px + 60%)'}, 96 {at: 0.6, is: 'calc(4px + 60%)'},
97 {at: 1, is: '100%'}, 97 {at: 1, is: '100%'},
98 {at: 1.5, is: 'calc(-5px + 150%)'}, 98 {at: 1.5, is: 'calc(-5px + 150%)'},
99 ]); 99 ]);
100 </script> 100 </script>
101 </body> 101 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698