@@ -107,35 +107,6 @@ describe('Test surface', function() {
107
107
expect ( traceOut . colorbar ) . toBeDefined ( ) ;
108
108
} ) ;
109
109
110
- it ( 'should coerce \'c\' attributes with \'z\' if \'c\' isn\'t present' , function ( ) {
111
- traceIn = {
112
- z : [ [ 1 , 2 , 3 ] , [ 2 , 1 , 2 ] ] ,
113
- zauto : false ,
114
- zmin : 0 ,
115
- zmax : 10
116
- } ;
117
-
118
- supplyDefaults ( traceIn , traceOut , defaultColor , layout ) ;
119
- expect ( traceOut . cauto ) . toEqual ( false ) ;
120
- expect ( traceOut . cmin ) . toEqual ( 0 ) ;
121
- expect ( traceOut . cmax ) . toEqual ( 10 ) ;
122
- } ) ;
123
-
124
- it ( 'should coerce \'c\' attributes with \'c\' values regardless of `\'z\' if \'c\' is present' , function ( ) {
125
- traceIn = {
126
- z : [ [ 1 , 2 , 3 ] , [ 2 , 1 , 2 ] ] ,
127
- zmin : 0 ,
128
- zmax : 10 ,
129
- cmin : - 10 ,
130
- cmax : 20
131
- } ;
132
-
133
- supplyDefaults ( traceIn , traceOut , defaultColor , layout ) ;
134
- expect ( traceOut . cauto ) . toEqual ( false ) ;
135
- expect ( traceOut . cmin ) . toEqual ( - 10 ) ;
136
- expect ( traceOut . cmax ) . toEqual ( 20 ) ;
137
- } ) ;
138
-
139
110
it ( 'should default \'c\' attributes with if \'surfacecolor\' is present' , function ( ) {
140
111
traceIn = {
141
112
z : [ [ 1 , 2 , 3 ] , [ 2 , 1 , 2 ] ] ,
0 commit comments