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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/font-size-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 font-size: 30px; 5 font-size: 30px;
6 } 6 }
7 .target { 7 .target {
8 display: inline-block; 8 display: inline-block;
9 font: 10px sans-serif; 9 font: 10px sans-serif;
10 } 10 }
11 .expected { 11 .expected {
12 color: green; 12 color: green;
13 margin-right: 30px; 13 margin-right: 30px;
14 } 14 }
15 </style> 15 </style>
16 <body> 16 <body>
17 <template id="target-template"> 17 <template id="target-template">
18 <span> 18 <span>
19 <div class="target">Test Text</div> 19 <div class="target">Test Text</div>
20 </span> 20 </span>
21 </template> 21 </template>
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: 'font-size', 25 property: 'font-size',
26 from: '', 26 from: neutralKeyframe,
27 to: '20px', 27 to: '20px',
28 }, [ 28 }, [
29 {at: -2, is: '0px'}, 29 {at: -2, is: '0px'},
30 {at: -0.3, is: '7px'}, 30 {at: -0.3, is: '7px'},
31 {at: 0, is: '10px'}, 31 {at: 0, is: '10px'},
32 {at: 0.3, is: '13px'}, 32 {at: 0.3, is: '13px'},
33 {at: 0.6, is: '16px'}, 33 {at: 0.6, is: '16px'},
34 {at: 1, is: '20px'}, 34 {at: 1, is: '20px'},
35 {at: 1.5, is: '25px'}, 35 {at: 1.5, is: '25px'},
36 ]); 36 ]);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 {at: -2, is: '0px'}, // CSS font-size can't be negative. 85 {at: -2, is: '0px'}, // CSS font-size can't be negative.
86 {at: -0.3, is: '1px'}, 86 {at: -0.3, is: '1px'},
87 {at: 0, is: '4px'}, 87 {at: 0, is: '4px'},
88 {at: 0.3, is: '7px'}, 88 {at: 0.3, is: '7px'},
89 {at: 0.6, is: '10px'}, 89 {at: 0.6, is: '10px'},
90 {at: 1, is: '14px'}, 90 {at: 1, is: '14px'},
91 {at: 1.5, is: '19px'}, 91 {at: 1.5, is: '19px'},
92 ]); 92 ]);
93 </script> 93 </script>
94 </body> 94 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698