OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <body> |
| 4 <template id="target-template"> |
| 5 <svg width="0" height="0"> |
| 6 <feSpotLight class="target" /> |
| 7 </svg> |
| 8 </template> |
| 9 <script src="../svg-attribute-interpolation/resources/interpolation-test.js"></s
cript> |
| 10 <script> |
| 11 'use strict'; |
| 12 assertAttributeInterpolation({ |
| 13 property: 'pointsAtX', |
| 14 underlying: '3', |
| 15 from: '1', |
| 16 fromComposite: 'add', |
| 17 to: '6', |
| 18 toComposite: 'add', |
| 19 }, [ |
| 20 {at: -0.4, is: 2}, |
| 21 {at: 0, is: 4}, |
| 22 {at: 0.2, is: 5}, |
| 23 {at: 0.6, is: 7}, |
| 24 {at: 1, is: 9}, |
| 25 {at: 1.4, is: 11}, |
| 26 ]); |
| 27 |
| 28 assertAttributeInterpolation({ |
| 29 property: 'pointsAtX', |
| 30 underlying: '5', |
| 31 from: '1', |
| 32 fromComposite: 'replace', |
| 33 to: '6', |
| 34 toComposite: 'add', |
| 35 }, [ |
| 36 {at: -0.4, is: -3}, |
| 37 {at: 0, is: 1}, |
| 38 {at: 0.2, is: 3}, |
| 39 {at: 0.6, is: 7}, |
| 40 {at: 1, is: 11}, |
| 41 {at: 1.4, is: 15}, |
| 42 ]); |
| 43 |
| 44 assertAttributeInterpolation({ |
| 45 property: 'pointsAtX', |
| 46 underlying: '5', |
| 47 from: '', |
| 48 fromComposite: 'add', |
| 49 to: '10', |
| 50 toComposite: 'replace', |
| 51 }, [ |
| 52 {at: -0.4, is: 3}, |
| 53 {at: 0, is: 5}, |
| 54 {at: 0.2, is: 6}, |
| 55 {at: 0.6, is: 8}, |
| 56 {at: 1, is: 10}, |
| 57 {at: 1.4, is: 12}, |
| 58 ]); |
| 59 |
| 60 assertAttributeInterpolation({ |
| 61 property: 'pointsAtY', |
| 62 underlying: '3', |
| 63 from: '1', |
| 64 fromComposite: 'add', |
| 65 to: '6', |
| 66 toComposite: 'add', |
| 67 }, [ |
| 68 {at: -0.4, is: 2}, |
| 69 {at: 0, is: 4}, |
| 70 {at: 0.2, is: 5}, |
| 71 {at: 0.6, is: 7}, |
| 72 {at: 1, is: 9}, |
| 73 {at: 1.4, is: 11}, |
| 74 ]); |
| 75 |
| 76 assertAttributeInterpolation({ |
| 77 property: 'pointsAtY', |
| 78 underlying: '5', |
| 79 from: '1', |
| 80 fromComposite: 'replace', |
| 81 to: '6', |
| 82 toComposite: 'add', |
| 83 }, [ |
| 84 {at: -0.4, is: -3}, |
| 85 {at: 0, is: 1}, |
| 86 {at: 0.2, is: 3}, |
| 87 {at: 0.6, is: 7}, |
| 88 {at: 1, is: 11}, |
| 89 {at: 1.4, is: 15}, |
| 90 ]); |
| 91 |
| 92 assertAttributeInterpolation({ |
| 93 property: 'pointsAtY', |
| 94 underlying: '5', |
| 95 from: '', |
| 96 fromComposite: 'add', |
| 97 to: '10', |
| 98 toComposite: 'replace', |
| 99 }, [ |
| 100 {at: -0.4, is: 3}, |
| 101 {at: 0, is: 5}, |
| 102 {at: 0.2, is: 6}, |
| 103 {at: 0.6, is: 8}, |
| 104 {at: 1, is: 10}, |
| 105 {at: 1.4, is: 12}, |
| 106 ]); |
| 107 |
| 108 assertAttributeInterpolation({ |
| 109 property: 'pointsAtZ', |
| 110 underlying: '3', |
| 111 from: '1', |
| 112 fromComposite: 'add', |
| 113 to: '6', |
| 114 toComposite: 'add', |
| 115 }, [ |
| 116 {at: -0.4, is: 2}, |
| 117 {at: 0, is: 4}, |
| 118 {at: 0.2, is: 5}, |
| 119 {at: 0.6, is: 7}, |
| 120 {at: 1, is: 9}, |
| 121 {at: 1.4, is: 11}, |
| 122 ]); |
| 123 |
| 124 assertAttributeInterpolation({ |
| 125 property: 'pointsAtZ', |
| 126 underlying: '5', |
| 127 from: '1', |
| 128 fromComposite: 'replace', |
| 129 to: '6', |
| 130 toComposite: 'add', |
| 131 }, [ |
| 132 {at: -0.4, is: -3}, |
| 133 {at: 0, is: 1}, |
| 134 {at: 0.2, is: 3}, |
| 135 {at: 0.6, is: 7}, |
| 136 {at: 1, is: 11}, |
| 137 {at: 1.4, is: 15}, |
| 138 ]); |
| 139 |
| 140 assertAttributeInterpolation({ |
| 141 property: 'pointsAtZ', |
| 142 underlying: '5', |
| 143 from: '', |
| 144 fromComposite: 'add', |
| 145 to: '10', |
| 146 toComposite: 'replace', |
| 147 }, [ |
| 148 {at: -0.4, is: 3}, |
| 149 {at: 0, is: 5}, |
| 150 {at: 0.2, is: 6}, |
| 151 {at: 0.6, is: 8}, |
| 152 {at: 1, is: 10}, |
| 153 {at: 1.4, is: 12}, |
| 154 ]); |
| 155 </script> |
| 156 </body> |
| 157 </html> |
OLD | NEW |