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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/svg-rx-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 .container { 4 .container {
5 margin-bottom: -4px; 5 margin-bottom: -4px;
6 } 6 }
7 .parent { 7 .parent {
8 rx: 30px; 8 rx: 30px;
9 } 9 }
10 .target { 10 .target {
11 fill: black; 11 fill: black;
12 rx: 10px; 12 rx: 10px;
13 } 13 }
14 .expected { 14 .expected {
15 fill: green; 15 fill: green;
16 } 16 }
17 </style> 17 </style>
18 <body> 18 <body>
19 <template id="target-template"> 19 <template id="target-template">
20 <svg width="400" height="20"> 20 <svg width="400" height="20">
21 <rect x="0" y="0" width="400" height="20" ry="10" class="target"/> 21 <rect x="0" y="0" width="400" height="20" ry="10" class="target"/>
22 </svg> 22 </svg>
23 </template> 23 </template>
24 <script src="resources/interpolation-test.js"></script> 24 <script src="resources/interpolation-test.js"></script>
25 <script> 25 <script>
26 assertInterpolation({ 26 assertInterpolation({
27 property: 'rx', 27 property: 'rx',
28 from: '', 28 from: neutralKeyframe,
29 to: '20px', 29 to: '20px',
30 }, [ 30 }, [
31 {at: -0.3, is: '7px'}, 31 {at: -0.3, is: '7px'},
32 {at: 0, is: '10px'}, 32 {at: 0, is: '10px'},
33 {at: 0.3, is: '13px'}, 33 {at: 0.3, is: '13px'},
34 {at: 0.6, is: '16px'}, 34 {at: 0.6, is: '16px'},
35 {at: 1, is: '20px'}, 35 {at: 1, is: '20px'},
36 {at: 1.5, is: '25px'}, 36 {at: 1.5, is: '25px'},
37 ]); 37 ]);
38 38
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 }, [ 142 }, [
143 {at: -0.3, is: '0'}, 143 {at: -0.3, is: '0'},
144 {at: 0, is: '0'}, 144 {at: 0, is: '0'},
145 {at: 0.3, is: '6'}, 145 {at: 0.3, is: '6'},
146 {at: 0.6, is: '12'}, 146 {at: 0.6, is: '12'},
147 {at: 1, is: '20'}, 147 {at: 1, is: '20'},
148 {at: 1.5, is: '30'}, 148 {at: 1.5, is: '30'},
149 ]); 149 ]);
150 </script> 150 </script>
151 </body> 151 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698