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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/box-shadow-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 box-shadow: 30px 10px 30px 10px black; 5 box-shadow: 30px 10px 30px 10px black;
6 } 6 }
7 .target { 7 .target {
8 display: inline-block; 8 display: inline-block;
9 width: 60px; 9 width: 60px;
10 height: 60px; 10 height: 60px;
11 font-size: 3px; 11 font-size: 3px;
12 border: 2px solid; 12 border: 2px solid;
13 margin-right: 20px; 13 margin-right: 20px;
14 margin-bottom: 30px; 14 margin-bottom: 30px;
15 color: green; 15 color: green;
16 box-shadow: 10px 30px 10px 30px black; 16 box-shadow: 10px 30px 10px 30px black;
17 } 17 }
18 .expected { 18 .expected {
19 margin-right: 40px; 19 margin-right: 40px;
20 } 20 }
21 </style> 21 </style>
22 <body> 22 <body>
23 <script src="resources/interpolation-test.js"></script> 23 <script src="resources/interpolation-test.js"></script>
24 <script> 24 <script>
25 assertInterpolation({ 25 assertInterpolation({
26 property: 'box-shadow', 26 property: 'box-shadow',
27 from: '', 27 from: neutralKeyframe,
28 to: '20px 20px 20px 20px black', 28 to: '20px 20px 20px 20px black',
29 }, [ 29 }, [
30 {at: -0.3, is: '7px 33px 7px 33px black'}, 30 {at: -0.3, is: '7px 33px 7px 33px black'},
31 {at: 0, is: '10px 30px 10px 30px black'}, 31 {at: 0, is: '10px 30px 10px 30px black'},
32 {at: 0.3, is: '13px 27px 13px 27px black'}, 32 {at: 0.3, is: '13px 27px 13px 27px black'},
33 {at: 0.6, is: '16px 24px 16px 24px black'}, 33 {at: 0.6, is: '16px 24px 16px 24px black'},
34 {at: 1, is: '20px 20px 20px 20px black'}, 34 {at: 1, is: '20px 20px 20px 20px black'},
35 {at: 1.5, is: '25px 15px 25px 15px black'}, 35 {at: 1.5, is: '25px 15px 25px 15px black'},
36 ]); 36 ]);
37 37
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 ]); 142 ]);
143 143
144 // Test unmatched inset 144 // Test unmatched inset
145 assertNoInterpolation({ 145 assertNoInterpolation({
146 property: 'box-shadow', 146 property: 'box-shadow',
147 from: '10px 20px yellow, 5px 10px green', 147 from: '10px 20px yellow, 5px 10px green',
148 to: 'inset 5px 10px green, 15px 20px blue' 148 to: 'inset 5px 10px green, 15px 20px blue'
149 }); 149 });
150 </script> 150 </script>
151 </body> 151 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698