Chromium Code Reviews| 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="../svg-attribute-interpolation/resources/interpolation-test.js"></s cript> | |
| 12 <script> | |
| 13 'use strict'; | |
| 14 assertAttributeInterpolation({ | |
| 15 property: 'tableValues', | |
| 16 underlying: '10, 20', | |
| 17 fromComposite: 'add', | |
| 18 from: '30, 40', | |
| 19 toComposite: 'add', | |
| 20 to: '50, -10' | |
| 21 }, [ | |
| 22 {at: -0.4, is: '32, 80'}, | |
| 23 {at: 0, is: '40, 60'}, | |
| 24 {at: 0.2, is: '44, 50'}, | |
| 25 {at: 0.6, is: '52, 30'}, | |
| 26 {at: 1.0, is: '60, 10'}, | |
| 27 {at: 1.4, is: '68, -10'}, | |
| 28 ]); | |
|
alancutter (OOO until 2018)
2015/11/03 03:28:25
Add an add -> add test with an underlying value of
| |
| 29 | |
| 30 assertAttributeInterpolation({ | |
| 31 property: 'tableValues', | |
| 32 underlying: '10, 20', | |
| 33 fromComposite: 'replace', | |
| 34 from: '30, 40', | |
| 35 toComposite: 'add', | |
| 36 to: '50, -10' | |
| 37 }, [ | |
| 38 {at: -0.4, is: '18, 52'}, | |
| 39 {at: 0, is: '30, 40'}, | |
| 40 {at: 0.2, is: '36, 34'}, | |
| 41 {at: 0.6, is: '48, 22'}, | |
| 42 {at: 1.0, is: '60, 10'}, | |
| 43 {at: 1.4, is: '72, -2'}, | |
| 44 ]); | |
| 45 | |
| 46 assertAttributeInterpolation({ | |
| 47 property: 'tableValues', | |
| 48 underlying: '', | |
| 49 fromComposite: 'add', | |
| 50 from: '30, 40', | |
| 51 toComposite: 'replace', | |
| 52 to: '50, -10' | |
| 53 }, [ | |
| 54 {at: -0.4, is: ''}, | |
| 55 {at: 0, is: ''}, | |
| 56 {at: 0.2, is: ''}, | |
| 57 {at: 0.6, is: ''}, | |
| 58 {at: 1.0, is: '50, -10'}, | |
| 59 {at: 1.4, is: ''}, | |
| 60 ]); | |
| 61 </script> | |
| 62 </body> | |
| 63 </html> | |
| OLD | NEW |