@@ -2666,32 +2666,25 @@ describe('splom hover on subplots when hoversubplots is set to *axis* and (x|y)
2666
2666
it ( 'splom hoversubplots: *axis*' , function ( ) {
2667
2667
Lib . clearThrottle ( ) ;
2668
2668
Plotly . Fx . hover ( gd , { x : 200 , y : 200 } , 'xy' ) ;
2669
- expect ( gd . _hoverdata . length ) . toBe ( 3 ) ;
2670
-
2671
2669
assertFirstPointOn ( gd , 'x' , 'y' ) ;
2672
-
2670
+ expect ( gd . _hoverdata . length ) . toBe ( 2 ) ;
2673
2671
assertHoverLabelContent ( {
2674
2672
nums : [ '100' , '100k' ] ,
2675
2673
name : [ '' , '' ] ,
2676
2674
axis : '100'
2677
2675
} ) ;
2678
2676
2679
2677
Plotly . relayout ( gd , 'hovermode' , 'x unified' ) ;
2680
-
2681
2678
Lib . clearThrottle ( ) ;
2682
2679
Plotly . Fx . hover ( gd , { x : 200 , y : 200 } , 'xy' ) ;
2683
-
2684
2680
assertFirstPointOn ( gd , 'x' , 'y' ) ;
2685
-
2686
- expect ( gd . _hoverdata . length ) . toBe ( 3 ) ;
2681
+ expect ( gd . _hoverdata . length ) . toBe ( 2 ) ;
2687
2682
2688
2683
Plotly . relayout ( gd , 'hovermode' , 'y unified' ) ;
2689
2684
Lib . clearThrottle ( ) ;
2690
2685
Plotly . Fx . hover ( gd , { x : 200 , y : 200 } , 'xy' ) ;
2691
-
2692
2686
assertFirstPointOn ( gd , 'x' , 'y' ) ;
2693
-
2694
- expect ( gd . _hoverdata . length ) . toBe ( 3 ) ;
2687
+ expect ( gd . _hoverdata . length ) . toBe ( 2 ) ;
2695
2688
} ) ;
2696
2689
} ) ;
2697
2690
@@ -2731,10 +2724,8 @@ describe('splom hover *axis* hoversubplots splom points on same position should
2731
2724
it ( 'splom *axis* hoversubplots' , function ( ) {
2732
2725
Lib . clearThrottle ( ) ;
2733
2726
Plotly . Fx . hover ( gd , { } , 'xy' ) ;
2734
- expect ( gd . _hoverdata . length ) . toBe ( 5 ) ;
2735
-
2736
2727
assertFirstPointOn ( gd , 'x' , 'y' ) ;
2737
-
2728
+ expect ( gd . _hoverdata . length ) . toBe ( 4 ) ;
2738
2729
assertHoverLabelContent ( {
2739
2730
nums : [ '1' , '1' , '1' , '1' ] ,
2740
2731
name : [ '' , '' , '' , '' ] ,
@@ -2743,10 +2734,8 @@ describe('splom hover *axis* hoversubplots splom points on same position should
2743
2734
2744
2735
Lib . clearThrottle ( ) ;
2745
2736
Plotly . Fx . hover ( gd , { } , 'xy2' ) ;
2746
- expect ( gd . _hoverdata . length ) . toBe ( 4 ) ;
2747
-
2748
2737
assertFirstPointOn ( gd , 'x' , 'y2' ) ;
2749
-
2738
+ expect ( gd . _hoverdata . length ) . toBe ( 3 ) ;
2750
2739
assertHoverLabelContent ( {
2751
2740
nums : [ '1' , '2' , '2' ] ,
2752
2741
name : [ '' , '' , '' ] ,
@@ -2755,10 +2744,8 @@ describe('splom hover *axis* hoversubplots splom points on same position should
2755
2744
2756
2745
Lib . clearThrottle ( ) ;
2757
2746
Plotly . Fx . hover ( gd , { } , 'xy3' ) ;
2758
- expect ( gd . _hoverdata . length ) . toBe ( 4 ) ;
2759
-
2760
2747
assertFirstPointOn ( gd , 'x' , 'y3' ) ;
2761
-
2748
+ expect ( gd . _hoverdata . length ) . toBe ( 3 ) ;
2762
2749
assertHoverLabelContent ( {
2763
2750
nums : [ '1' , '2' , '2' ] ,
2764
2751
name : [ '' , '' , '' ] ,
@@ -2767,10 +2754,8 @@ describe('splom hover *axis* hoversubplots splom points on same position should
2767
2754
2768
2755
Lib . clearThrottle ( ) ;
2769
2756
Plotly . Fx . hover ( gd , { } , 'xy4' ) ;
2770
- expect ( gd . _hoverdata . length ) . toBe ( 5 ) ;
2771
-
2772
2757
assertFirstPointOn ( gd , 'x' , 'y4' ) ;
2773
-
2758
+ expect ( gd . _hoverdata . length ) . toBe ( 4 ) ;
2774
2759
assertHoverLabelContent ( {
2775
2760
nums : [ '1' , '3' , '3' , '3' ] ,
2776
2761
name : [ '' , '' , '' , '' ] ,
@@ -2779,10 +2764,8 @@ describe('splom hover *axis* hoversubplots splom points on same position should
2779
2764
2780
2765
Lib . clearThrottle ( ) ;
2781
2766
Plotly . Fx . hover ( gd , { } , 'x2y' ) ;
2782
- expect ( gd . _hoverdata . length ) . toBe ( 5 ) ;
2783
-
2784
2767
assertFirstPointOn ( gd , 'x2' , 'y' ) ;
2785
-
2768
+ expect ( gd . _hoverdata . length ) . toBe ( 4 ) ;
2786
2769
assertHoverLabelContent ( {
2787
2770
nums : [ '1' , '3' , '3' , '3' ] ,
2788
2771
name : [ '' , '' , '' , '' ] ,
@@ -2791,10 +2774,8 @@ describe('splom hover *axis* hoversubplots splom points on same position should
2791
2774
2792
2775
Lib . clearThrottle ( ) ;
2793
2776
Plotly . Fx . hover ( gd , { } , 'x3y' ) ;
2794
- expect ( gd . _hoverdata . length ) . toBe ( 5 ) ;
2795
-
2796
2777
assertFirstPointOn ( gd , 'x3' , 'y' ) ;
2797
-
2778
+ expect ( gd . _hoverdata . length ) . toBe ( 4 ) ;
2798
2779
assertHoverLabelContent ( {
2799
2780
nums : [ '1' , '3' , '3' , '3' ] ,
2800
2781
name : [ '' , '' , '' , '' ] ,
@@ -2803,10 +2784,8 @@ describe('splom hover *axis* hoversubplots splom points on same position should
2803
2784
2804
2785
Lib . clearThrottle ( ) ;
2805
2786
Plotly . Fx . hover ( gd , { } , 'x4y' ) ;
2806
- expect ( gd . _hoverdata . length ) . toBe ( 5 ) ;
2807
-
2808
2787
assertFirstPointOn ( gd , 'x4' , 'y' ) ;
2809
-
2788
+ expect ( gd . _hoverdata . length ) . toBe ( 4 ) ;
2810
2789
assertHoverLabelContent ( {
2811
2790
nums : [ '1' , '3' , '3' , '3' ] ,
2812
2791
name : [ '' , '' , '' , '' ] ,
0 commit comments