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="90" height="90"> | 5 <svg width="90" height="90"> |
6 <marker class="target" /> | 6 <rect class="target"/> |
7 </svg> | 7 </svg> |
8 </template> | 8 </template> |
9 <script src="resources/interpolation-test.js"></script> | 9 <script src="resources/interpolation-test.js"></script> |
10 <script> | 10 <script> |
11 'use strict'; | 11 'use strict'; |
| 12 |
12 assertAttributeInterpolation({ | 13 assertAttributeInterpolation({ |
13 property: 'refX', | 14 property: 'x', |
14 from: '1', | 15 from: '1', |
15 to: '6' | 16 to: '6' |
16 }, [ | 17 }, [ |
17 {at: -0.4, is: -1}, | 18 {at: -0.4, is: -1}, |
18 {at: 0, is: 1}, | 19 {at: 0, is: 1}, |
19 {at: 0.2, is: 2}, | 20 {at: 0.2, is: 2}, |
20 {at: 0.6, is: 4}, | 21 {at: 0.6, is: 4}, |
21 {at: 1, is: 6}, | 22 {at: 1, is: 6}, |
22 {at: 1.4, is: 8} | 23 {at: 1.4, is: 8} |
23 ]); | 24 ]); |
| 25 |
24 assertAttributeInterpolation({ | 26 assertAttributeInterpolation({ |
25 property: 'refY', | 27 property: 'y', |
26 from: '1', | 28 from: '1', |
27 to: '6' | 29 to: '6' |
28 }, [ | 30 }, [ |
29 {at: -0.4, is: -1}, | 31 {at: -0.4, is: -1}, |
30 {at: 0, is: 1}, | 32 {at: 0, is: 1}, |
31 {at: 0.2, is: 2}, | 33 {at: 0.2, is: 2}, |
32 {at: 0.6, is: 4}, | 34 {at: 0.6, is: 4}, |
33 {at: 1, is: 6}, | 35 {at: 1, is: 6}, |
34 {at: 1.4, is: 8} | 36 {at: 1.4, is: 8} |
35 ]); | 37 ]); |
36 </script> | 38 </script> |
37 </body> | 39 </body> |
38 </html> | 40 </html> |
OLD | NEW |