OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <template id="target-template"> | 4 <template id="target-template"> |
5 <svg width="0" height="0"> | 5 <svg width="0" height="0"> |
6 <polygon class="target" /> | 6 <polygon class="target" /> |
7 </svg> | 7 </svg> |
8 </template> | 8 </template> |
9 <script src="../svg-attribute-interpolation/resources/interpolation-test.js"></s
cript> | 9 <script src="../svg-attribute-interpolation/resources/interpolation-test.js"></s
cript> |
10 <script> | 10 <script> |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 {at: 0, is: '80 80'}, | 101 {at: 0, is: '80 80'}, |
102 {at: 0.2, is: '80 80'}, | 102 {at: 0.2, is: '80 80'}, |
103 {at: 0.6, is: '90 90, -10 -10'}, | 103 {at: 0.6, is: '90 90, -10 -10'}, |
104 {at: 1, is: '90 90, -10 -10'}, | 104 {at: 1, is: '90 90, -10 -10'}, |
105 {at: 1.4, is: '90 90, -10 -10'}, | 105 {at: 1.4, is: '90 90, -10 -10'}, |
106 ]); | 106 ]); |
107 | 107 |
108 assertAttributeInterpolation({ | 108 assertAttributeInterpolation({ |
109 property: 'points', | 109 property: 'points', |
110 underlying: '10 10, 20 20', | 110 underlying: '10 10, 20 20', |
| 111 from: neutralKeyframe, |
111 to: '90 90, -10 -10', | 112 to: '90 90, -10 -10', |
112 toComposite: 'replace', | 113 toComposite: 'replace', |
113 }, [ | 114 }, [ |
114 {at: -0.4, is: '-22 -22, 32 32'}, | 115 {at: -0.4, is: '-22 -22, 32 32'}, |
115 {at: 0, is: '10 10, 20 20'}, | 116 {at: 0, is: '10 10, 20 20'}, |
116 {at: 0.2, is: '26 26, 14 14'}, | 117 {at: 0.2, is: '26 26, 14 14'}, |
117 {at: 0.6, is: '58 58, 2 2'}, | 118 {at: 0.6, is: '58 58, 2 2'}, |
118 {at: 1, is: '90 90, -10 -10'}, | 119 {at: 1, is: '90 90, -10 -10'}, |
119 {at: 1.4, is: '122 122, -22 -22'}, | 120 {at: 1.4, is: '122 122, -22 -22'}, |
120 ]); | 121 ]); |
121 | 122 |
122 assertAttributeInterpolation({ | 123 assertAttributeInterpolation({ |
123 property: 'points', | 124 property: 'points', |
124 underlying: '10 10, 20 20', | 125 underlying: '10 10, 20 20', |
| 126 from: neutralKeyframe, |
125 to: '90 90, -10 -10, 50 50', | 127 to: '90 90, -10 -10, 50 50', |
126 toComposite: 'replace', | 128 toComposite: 'replace', |
127 }, [ | 129 }, [ |
128 {at: -0.4, is: '10 10, 20 20'}, | 130 {at: -0.4, is: '10 10, 20 20'}, |
129 {at: 0, is: '10 10, 20 20'}, | 131 {at: 0, is: '10 10, 20 20'}, |
130 {at: 0.2, is: '10 10, 20 20'}, | 132 {at: 0.2, is: '10 10, 20 20'}, |
131 {at: 0.6, is: '90 90, -10 -10, 50 50'}, | 133 {at: 0.6, is: '90 90, -10 -10, 50 50'}, |
132 {at: 1, is: '90 90, -10 -10, 50 50'}, | 134 {at: 1, is: '90 90, -10 -10, 50 50'}, |
133 {at: 1.4, is: '90 90, -10 -10, 50 50'}, | 135 {at: 1.4, is: '90 90, -10 -10, 50 50'}, |
134 ]); | 136 ]); |
135 </script> | 137 </script> |
136 </body> | 138 </body> |
137 </html> | 139 </html> |
OLD | NEW |