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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/min-width-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 min-width: 30px; 5 min-width: 30px;
6 } 6 }
7 .target { 7 .target {
8 width: 0px; 8 width: 0px;
9 height: 10px; 9 height: 10px;
10 background-color: black; 10 background-color: black;
11 min-width: 10px; 11 min-width: 10px;
12 } 12 }
13 .expected { 13 .expected {
14 background-color: green; 14 background-color: green;
15 } 15 }
16 </style> 16 </style>
17 <body> 17 <body>
18 <script src="resources/interpolation-test.js"></script> 18 <script src="resources/interpolation-test.js"></script>
19 <script> 19 <script>
20 assertInterpolation({ 20 assertInterpolation({
21 property: 'min-width', 21 property: 'min-width',
22 from: '', 22 from: neutralKeyframe,
23 to: '20px', 23 to: '20px',
24 }, [ 24 }, [
25 {at: -0.5, is: '5px'}, 25 {at: -0.5, is: '5px'},
26 {at: 0, is: '10px'}, 26 {at: 0, is: '10px'},
27 {at: 0.3, is: '13px'}, 27 {at: 0.3, is: '13px'},
28 {at: 0.6, is: '16px'}, 28 {at: 0.6, is: '16px'},
29 {at: 1, is: '20px'}, 29 {at: 1, is: '20px'},
30 {at: 1.5, is: '25px'}, 30 {at: 1.5, is: '25px'},
31 ]); 31 ]);
32 32
(...skipping 29 matching lines...) Expand all
62 }, [ 62 }, [
63 {at: -0.5, is: '0'}, // CSS min-width can't be negative. 63 {at: -0.5, is: '0'}, // CSS min-width can't be negative.
64 {at: 0, is: '0'}, 64 {at: 0, is: '0'},
65 {at: 0.3, is: '30px'}, 65 {at: 0.3, is: '30px'},
66 {at: 0.6, is: '60px'}, 66 {at: 0.6, is: '60px'},
67 {at: 1, is: '100px'}, 67 {at: 1, is: '100px'},
68 {at: 1.5, is: '150px'} 68 {at: 1.5, is: '150px'}
69 ]); 69 ]);
70 </script> 70 </script>
71 </body> 71 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698