@@ -422,7 +422,6 @@ describe('Rangeslider visibility property', function() {
422
422
} ) ;
423
423
424
424
it ( 'should clear traces in range plot when needed' , function ( done ) {
425
-
426
425
function count ( query ) {
427
426
return d3 . select ( getRangeSlider ( ) ) . selectAll ( query ) . size ( ) ;
428
427
}
@@ -468,38 +467,38 @@ describe('Rangeslider visibility property', function() {
468
467
} ] ) ;
469
468
} )
470
469
. then ( function ( ) {
471
- expect ( count ( 'g.imagelayer > g.hm' ) ) . toEqual ( 1 ) ;
470
+ expect ( count ( 'g.heatmaplayer > g.hm' ) ) . toEqual ( 1 ) ;
472
471
473
472
return Plotly . restyle ( gd , 'visible' , false ) ;
474
473
} )
475
474
. then ( function ( ) {
476
- expect ( count ( 'g.imagelayer > g.hm' ) ) . toEqual ( 0 ) ;
475
+ expect ( count ( 'g.heatmaplayer > g.hm' ) ) . toEqual ( 0 ) ;
477
476
478
477
return Plotly . restyle ( gd , {
479
478
visible : true ,
480
479
type : 'contour'
481
480
} ) ;
482
481
} )
483
482
. then ( function ( ) {
484
- expect ( count ( 'g.maplayer > g.contour' ) ) . toEqual ( 1 ) ;
483
+ expect ( count ( 'g.contourlayer > g.contour' ) ) . toEqual ( 1 ) ;
485
484
486
485
return Plotly . restyle ( gd , 'type' , 'heatmap' ) ;
487
486
} )
488
487
. then ( function ( ) {
489
- expect ( count ( 'g.imagelayer > g.hm' ) ) . toEqual ( 1 ) ;
490
- expect ( count ( 'g.maplayer > g.contour' ) ) . toEqual ( 0 ) ;
488
+ expect ( count ( 'g.heatmaplayer > g.hm' ) ) . toEqual ( 1 ) ;
489
+ expect ( count ( 'g.contourlayer > g.contour' ) ) . toEqual ( 0 ) ;
491
490
492
491
return Plotly . restyle ( gd , 'type' , 'contour' ) ;
493
492
} )
494
493
. then ( function ( ) {
495
- expect ( count ( 'g.imagelayer > g.hm' ) ) . toEqual ( 0 ) ;
496
- expect ( count ( 'g.maplayer > g.contour' ) ) . toEqual ( 1 ) ;
494
+ expect ( count ( 'g.heatmaplayer > g.hm' ) ) . toEqual ( 0 ) ;
495
+ expect ( count ( 'g.contourlayer > g.contour' ) ) . toEqual ( 1 ) ;
497
496
498
497
return Plotly . deleteTraces ( gd , [ 0 ] ) ;
499
498
} )
500
499
. then ( function ( ) {
501
- expect ( count ( 'g.imagelayer > g.hm' ) ) . toEqual ( 0 ) ;
502
- expect ( count ( 'g.maplayer > g.contour' ) ) . toEqual ( 0 ) ;
500
+ expect ( count ( 'g.heatmaplayer > g.hm' ) ) . toEqual ( 0 ) ;
501
+ expect ( count ( 'g.contourlayer > g.contour' ) ) . toEqual ( 0 ) ;
503
502
} )
504
503
. catch ( failTest )
505
504
. then ( done ) ;
0 commit comments