@@ -26,12 +26,21 @@ suite.addBatch({
2626 "interpolates named colors in RGB" : function ( d3 ) {
2727 assert . strictEqual ( d3 . interpolate ( "red" , "green" ) ( .4 ) , "#993300" ) ;
2828 } ,
29+ "interpolates case-insensitive named colors in RGB" : function ( d3 ) {
30+ assert . strictEqual ( d3 . interpolate ( "ReD" , "GrEeN" ) ( .4 ) , "#993300" ) ;
31+ } ,
2932 "interpolates decimal RGB colors in RGB" : function ( d3 ) {
3033 assert . strictEqual ( d3 . interpolate ( "rgb(255,0,0)" , "rgb(0,128,0)" ) ( .4 ) , "#993300" ) ;
3134 } ,
35+ "interpolates case-insensitive decimal RGB colors in RGB" : function ( d3 ) {
36+ assert . strictEqual ( d3 . interpolate ( "RgB(255,0,0)" , "rGb(0,128,0)" ) ( .4 ) , "#993300" ) ;
37+ } ,
3238 "interpolates decimal HSL colors in RGB" : function ( d3 ) {
3339 assert . strictEqual ( d3 . interpolate ( "hsl(0,100%,50%)" , "hsl(120,100%,25%)" ) ( .4 ) , "#993300" ) ;
3440 } ,
41+ "interpolates case-insensitive decimal HSL colors in RGB" : function ( d3 ) {
42+ assert . strictEqual ( d3 . interpolate ( "HsL(0,100%,50%)" , "hSl(120,100%,25%)" ) ( .4 ) , "#993300" ) ;
43+ } ,
3544 "coerces a to a color" : function ( d3 ) {
3645 assert . strictEqual ( d3 . interpolate ( { toString : function ( ) { return "red" ; } } , "green" ) ( .4 ) , "#993300" ) ;
3746 }
0 commit comments