@@ -1513,7 +1513,7 @@ describe('hover info', function() {
15131513
15141514 describe ( 'overflowing hover labels' , function ( ) {
15151515 var trace = { y : [ 1 , 2 , 3 ] , text : [ '' , 'a<br>b<br>c' , '' ] } ;
1516- var data = [ trace , trace , trace , trace , trace , trace , trace , trace ] ;
1516+ var data = [ trace , trace , trace , trace , trace , trace , trace , trace , trace , trace ] ;
15171517 var layout = {
15181518 width : 600 , height : 600 , showlegend : false ,
15191519 margin : { l : 100 , r : 100 , t : 100 , b : 100 } ,
@@ -1534,22 +1534,22 @@ describe('hover info', function() {
15341534 it ( 'shows as many labels as will fit on the div, not on the subplot, when labels do not overlap the axis label' , function ( done ) {
15351535 _hoverNatural ( gd , 200 , 200 ) ;
15361536
1537- expect ( labelCount ( ) ) . toBe ( 7 ) ;
1537+ expect ( labelCount ( ) ) . toBe ( 8 ) ;
15381538
15391539 Plotly . relayout ( gd , { 'yaxis.domain' : [ 0.48 , 0.52 ] } )
15401540 . then ( function ( ) {
15411541 _hoverNatural ( gd , 150 , 200 ) ;
15421542 _hoverNatural ( gd , 200 , 200 ) ;
15431543
1544- expect ( labelCount ( ) ) . toBe ( 7 ) ;
1544+ expect ( labelCount ( ) ) . toBe ( 8 ) ;
15451545 } )
15461546 . then ( done , done . fail ) ;
15471547 } ) ;
15481548 } ) ;
15491549
15501550 describe ( 'overlapping hover labels' , function ( ) {
15511551 var trace = { y : [ 1 , 2 , 3 ] , x : [ '01.01.2020' , '02.01.2020' , '03.01.2020' ] , text : [ '' , 'a<br>b<br>c' , '' ] } ;
1552- var data = [ trace , trace , trace , trace , trace , trace , trace , trace ] ;
1552+ var data = [ trace , trace , trace , trace , trace , trace , trace , trace , trace , trace ] ;
15531553 var layout = {
15541554 width : 600 , height : 600 , showlegend : false ,
15551555 margin : { l : 100 , r : 100 , t : 100 , b : 100 } ,
@@ -1577,7 +1577,7 @@ describe('hover info', function() {
15771577 _hoverNatural ( gd , 150 , 200 ) ;
15781578 _hoverNatural ( gd , 200 , 200 ) ;
15791579
1580- expect ( labelCount ( ) ) . toBe ( 6 ) ;
1580+ expect ( labelCount ( ) ) . toBe ( 4 ) ;
15811581 } )
15821582 . then ( done , done . fail ) ;
15831583 } ) ;
0 commit comments