@@ -20,6 +20,13 @@ suite('color-handler', function() {
20
20
assert . equal ( webAnimations1 . propertyInterpolation ( 'color' , 'red' , 'green' ) ( 2 ) , 'rgba(0,255,0,1)' ) ;
21
21
assert . equal ( webAnimations1 . propertyInterpolation ( 'color' , 'red' , 'green' ) ( - 1 ) , 'rgba(255,0,0,1)' ) ;
22
22
} ) ;
23
+ test ( 'svg color interpolation' , function ( ) {
24
+ assert . equal ( webAnimations1 . propertyInterpolation ( 'fill' , '#00fe00' , '#180036' ) ( 0.5 ) , 'rgba(12,127,27,1)' ) ;
25
+ assert . equal ( webAnimations1 . propertyInterpolation ( 'floodColor' , '#00fe00' , '#180036' ) ( 0.5 ) , 'rgba(12,127,27,1)' ) ;
26
+ assert . equal ( webAnimations1 . propertyInterpolation ( 'lightingColor' , '#00fe00' , '#180036' ) ( 0.5 ) , 'rgba(12,127,27,1)' ) ;
27
+ assert . equal ( webAnimations1 . propertyInterpolation ( 'stopColor' , '#00fe00' , '#180036' ) ( 0.5 ) , 'rgba(12,127,27,1)' ) ;
28
+ assert . equal ( webAnimations1 . propertyInterpolation ( 'stroke' , '#00fe00' , '#180036' ) ( 0.5 ) , 'rgba(12,127,27,1)' ) ;
29
+ } ) ;
23
30
test ( 'interpolation to/from initial' , function ( ) {
24
31
assert . equal ( webAnimations1 . propertyInterpolation ( 'backgroundColor' , 'initial' , 'red' ) ( 0.5 ) , 'rgba(255,0,0,0.500)' ) ;
25
32
} ) ;
0 commit comments