@@ -553,72 +553,6 @@ describe('Test geo interactions', function() {
553
553
Plotly . plot ( gd , mockCopy . data , mockCopy . layout ) . then ( done ) ;
554
554
} ) ;
555
555
556
- describe ( 'scattergeo hover labels' , function ( ) {
557
- it ( 'should show one hover text group' , function ( ) {
558
- mouseEventScatterGeo ( 'mousemove' ) ;
559
- expect ( d3 . selectAll ( 'g.hovertext' ) . size ( ) ) . toEqual ( 1 ) ;
560
- } ) ;
561
-
562
- it ( 'should show longitude and latitude values' , function ( ) {
563
- mouseEventScatterGeo ( 'mousemove' ) ;
564
-
565
- var node = d3 . selectAll ( 'g.hovertext' ) . selectAll ( 'tspan' ) [ 0 ] [ 0 ] ;
566
- expect ( node . innerHTML ) . toEqual ( '(0°, 0°)' ) ;
567
- } ) ;
568
-
569
- it ( 'should show the trace name' , function ( ) {
570
- mouseEventScatterGeo ( 'mousemove' ) ;
571
-
572
- var node = d3 . selectAll ( 'g.hovertext' ) . selectAll ( 'text' ) [ 0 ] [ 0 ] ;
573
- expect ( node . innerHTML ) . toEqual ( 'trace 0' ) ;
574
- } ) ;
575
-
576
- it ( 'should show *text* (case 1)' , function ( done ) {
577
- Plotly . restyle ( gd , 'text' , [ [ 'A' , 'B' ] ] ) . then ( function ( ) {
578
- mouseEventScatterGeo ( 'mousemove' ) ;
579
-
580
- var node = d3 . selectAll ( 'g.hovertext' ) . selectAll ( 'tspan' ) [ 0 ] [ 1 ] ;
581
- expect ( node . innerHTML ) . toEqual ( 'A' ) ;
582
- } )
583
- . then ( done ) ;
584
- } ) ;
585
-
586
- it ( 'should show *text* (case 2)' , function ( done ) {
587
- Plotly . restyle ( gd , 'text' , [ [ null , 'B' ] ] ) . then ( function ( ) {
588
- mouseEventScatterGeo ( 'mousemove' ) ;
589
-
590
- var node = d3 . selectAll ( 'g.hovertext' ) . selectAll ( 'tspan' ) [ 0 ] [ 1 ] ;
591
- expect ( node ) . toBeUndefined ( ) ;
592
- } )
593
- . then ( done ) ;
594
- } ) ;
595
-
596
- it ( 'should show *text* (case 3)' , function ( done ) {
597
- Plotly . restyle ( gd , 'text' , [ [ '' , 'B' ] ] ) . then ( function ( ) {
598
- mouseEventScatterGeo ( 'mousemove' ) ;
599
-
600
- var node = d3 . selectAll ( 'g.hovertext' ) . selectAll ( 'tspan' ) [ 0 ] [ 1 ] ;
601
- expect ( node ) . toBeUndefined ( ) ;
602
- } )
603
- . then ( done ) ;
604
- } ) ;
605
-
606
- it ( 'should show custom \`hoverlabel\' settings' , function ( done ) {
607
- Plotly . restyle ( gd , {
608
- 'hoverlabel.bgcolor' : 'red' ,
609
- 'hoverlabel.bordercolor' : [ [ 'blue' , 'black' , 'green' ] ]
610
- } )
611
- . then ( function ( ) {
612
- mouseEventScatterGeo ( 'mousemove' ) ;
613
-
614
- var pathStyle = window . getComputedStyle ( d3 . select ( 'g.hovertext path' ) . node ( ) ) ;
615
- expect ( pathStyle . fill ) . toEqual ( 'rgb(255, 0, 0)' , 'bgcolor' ) ;
616
- expect ( pathStyle . stroke ) . toEqual ( 'rgb(0, 0, 255)' , 'bordecolor[0]' ) ;
617
- } )
618
- . then ( done ) ;
619
- } ) ;
620
- } ) ;
621
-
622
556
describe ( 'scattergeo hover events' , function ( ) {
623
557
var ptData , cnt ;
624
558
@@ -745,30 +679,6 @@ describe('Test geo interactions', function() {
745
679
} ) ;
746
680
} ) ;
747
681
748
- describe ( 'choropleth hover labels' , function ( ) {
749
- beforeEach ( function ( ) {
750
- mouseEventChoropleth ( 'mouseover' ) ;
751
- mouseEventChoropleth ( 'mousemove' ) ;
752
- } ) ;
753
-
754
- it ( 'should show one hover text group' , function ( ) {
755
- expect ( d3 . selectAll ( 'g.hovertext' ) . size ( ) ) . toEqual ( 1 ) ;
756
- } ) ;
757
-
758
- it ( 'should show location and z values' , function ( ) {
759
- var node = d3 . selectAll ( 'g.hovertext' ) . selectAll ( 'tspan' ) [ 0 ] ;
760
-
761
- expect ( node [ 0 ] . innerHTML ) . toEqual ( 'RUS' ) ;
762
- expect ( node [ 1 ] . innerHTML ) . toEqual ( '10' ) ;
763
- } ) ;
764
-
765
- it ( 'should show the trace name' , function ( ) {
766
- var node = d3 . selectAll ( 'g.hovertext' ) . selectAll ( 'text' ) [ 0 ] [ 0 ] ;
767
-
768
- expect ( node . innerHTML ) . toEqual ( 'trace 1' ) ;
769
- } ) ;
770
- } ) ;
771
-
772
682
describe ( 'choropleth hover events' , function ( ) {
773
683
var ptData ;
774
684
0 commit comments