Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset="UTF-8"> | 2 <meta charset="UTF-8"> |
| 3 <body> | 3 <body> |
| 4 <script src="resources/interpolation-test.js"></script> | 4 <script src="resources/interpolation-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 assertInterpolation({ | 6 assertInterpolation({ |
| 7 property: 'shape-image-threshold', | 7 property: 'shape-image-threshold', |
| 8 from: '0.5', | 8 from: '0.5', |
| 9 to: '1' | 9 to: '1' |
| 10 }, [ | 10 }, [ |
| 11 {at: -1.5, is: '0'}, | 11 {at: -1.5, is: '0'}, |
| 12 {at: -0.5, is: '0.25'}, | 12 {at: -0.5, is: '0.25'}, |
| 13 {at: 0, is: '0.5'}, | 13 {at: 0, is: '0.5'}, |
| 14 {at: 0.5, is: '0.75'}, | 14 {at: 0.5, is: '0.75'}, |
| 15 {at: 1, is: '1'}, | 15 {at: 1, is: '1'}, |
| 16 {at: 1.5, is: '1'} | 16 {at: 1.5, is: '1'} |
| 17 ]); | 17 ]); |
| 18 assertInterpolation({ | |
| 19 property: 'shape-image-threshold', | |
| 20 from: '2', | |
| 21 to: '4' | |
| 22 }, [ | |
| 23 {at: -1.5, is: '0'}, | |
| 24 {at: -0.75, is: '0.5'}, | |
| 25 {at: -0.5, is: '1'}, | |
| 26 {at: 0, is: '2'}, | |
| 27 {at: 0.5, is: '3'}, | |
| 28 {at: 1, is: '4'}, | |
| 29 {at: 1.5, is: '4'} | |
|
alancutter (OOO until 2018)
2015/02/04 20:24:37
Why does this test pass? Your code now clamps betw
jadeg
2015/02/05 23:37:01
Im really not sure, maybe you could come and help
| |
| 30 ]); | |
| 18 </script> | 31 </script> |
| 19 </body> | 32 </body> |
| OLD | NEW |