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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/object-position-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 object-position: 30px 10px; 5 object-position: 30px 10px;
6 } 6 }
7 .target { 7 .target {
8 position: relative; 8 position: relative;
9 width: 100px; 9 width: 100px;
10 height: 100px; 10 height: 100px;
11 background-color: black; 11 background-color: black;
12 display: inline-block; 12 display: inline-block;
13 margin: 20px 0px 20px 0px; 13 margin: 20px 0px 20px 0px;
14 object-fit: fill; 14 object-fit: fill;
15 object-position: 10px 30px; 15 object-position: 10px 30px;
16 } 16 }
17 .expected { 17 .expected {
18 background-color: green; 18 background-color: green;
19 } 19 }
20 </style> 20 </style>
21 <body> 21 <body>
22 <script src="resources/interpolation-test.js"></script> 22 <script src="resources/interpolation-test.js"></script>
23 <script> 23 <script>
24 assertInterpolation({ 24 assertInterpolation({
25 property: 'object-position', 25 property: 'object-position',
26 from: '', 26 from: neutralKeyframe,
27 to: '20px 20px', 27 to: '20px 20px',
28 }, [ 28 }, [
29 {at: -0.3, is: '7px 33px'}, 29 {at: -0.3, is: '7px 33px'},
30 {at: 0, is: '10px 30px'}, 30 {at: 0, is: '10px 30px'},
31 {at: 0.5, is: '15px 25px'}, 31 {at: 0.5, is: '15px 25px'},
32 {at: 1, is: '20px 20px'}, 32 {at: 1, is: '20px 20px'},
33 {at: 1.5, is: '25px 15px'}, 33 {at: 1.5, is: '25px 15px'},
34 ]); 34 ]);
35 35
36 assertInterpolation({ 36 assertInterpolation({
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 {at: 0, is: 'center'}, 139 {at: 0, is: 'center'},
140 {at: 0.3, is: '65% 50%'}, 140 {at: 0.3, is: '65% 50%'},
141 {at: 0.5, is: '75% 50%'}, 141 {at: 0.5, is: '75% 50%'},
142 {at: 0.9, is: '95% 50%'}, 142 {at: 0.9, is: '95% 50%'},
143 {at: 1, is: '100% 50%'}, 143 {at: 1, is: '100% 50%'},
144 {at: 1.5, is: '125% 50%'}, 144 {at: 1.5, is: '125% 50%'},
145 {at: 2, is: '150% 50%'}, 145 {at: 2, is: '150% 50%'},
146 ]); 146 ]);
147 </script> 147 </script>
148 </body> 148 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698