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