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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/padding-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 padding: 30px; 5 padding: 30px;
6 } 6 }
7 .target { 7 .target {
8 width: 1px; 8 width: 1px;
9 height: 1px; 9 height: 1px;
10 background-color: black; 10 background-color: black;
11 display: inline-block; 11 display: inline-block;
12 padding: 10px; 12 padding: 10px;
13 } 13 }
14 .expected { 14 .expected {
15 background-color: green; 15 background-color: green;
16 margin-right: 10px; 16 margin-right: 10px;
17 } 17 }
18 </style> 18 </style>
19 <body> 19 <body>
20 <script src="resources/interpolation-test.js"></script> 20 <script src="resources/interpolation-test.js"></script>
21 <script> 21 <script>
22 assertInterpolation({ 22 assertInterpolation({
23 property: 'padding', 23 property: 'padding',
24 from: '', 24 from: neutralKeyframe,
25 to: '20px', 25 to: '20px',
26 }, [ 26 }, [
27 {at: -0.3, is: '7px'}, 27 {at: -0.3, is: '7px'},
28 {at: 0, is: '10px'}, 28 {at: 0, is: '10px'},
29 {at: 0.3, is: '13px'}, 29 {at: 0.3, is: '13px'},
30 {at: 0.6, is: '16px'}, 30 {at: 0.6, is: '16px'},
31 {at: 1, is: '20px'}, 31 {at: 1, is: '20px'},
32 {at: 1.5, is: '25px'}, 32 {at: 1.5, is: '25px'},
33 ]); 33 ]);
34 34
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 {at: -0.3, is: '0px'}, // CSS padding can't be negative. 79 {at: -0.3, is: '0px'}, // CSS padding can't be negative.
80 {at: 0, is: '0px'}, 80 {at: 0, is: '0px'},
81 {at: 0.3, is: '3px'}, 81 {at: 0.3, is: '3px'},
82 {at: 0.6, is: '6px'}, 82 {at: 0.6, is: '6px'},
83 {at: 1, is: '10px'}, 83 {at: 1, is: '10px'},
84 {at: 1.5, is: '15px'} 84 {at: 1.5, is: '15px'}
85 ]); 85 ]);
86 </script> 86 </script>
87 </body> 87 </body>
88 88
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698