@@ -1722,13 +1722,13 @@ describe('Test axes', function() {
17221722 width : 600 ,
17231723 height : 600
17241724 } ) . then ( function ( ) {
1725- expect ( gd . _fullLayout . xaxis . range ) . toBeCloseToArray ( [ - 0.13 , 2 ] ) ;
1725+ expect ( gd . _fullLayout . xaxis . range ) . toBeCloseToArray ( [ - 0.110 , 2 ] ) ;
17261726
17271727 return Plotly . relayout ( gd , {
17281728 'xaxis.insiderange' : [ 1 , 3 ]
17291729 } ) ;
17301730 } ) . then ( function ( ) {
1731- expect ( gd . _fullLayout . xaxis . range ) . toBeCloseToArray ( [ 0.866 , 3 ] ) ;
1731+ expect ( gd . _fullLayout . xaxis . range ) . toBeCloseToArray ( [ 0.889 , 3 ] ) ;
17321732 } ) . then ( done , done . fail ) ;
17331733 } ) ;
17341734 } ) ;
@@ -4908,32 +4908,32 @@ describe('Test axes', function() {
49084908 } )
49094909 . then ( function ( ) {
49104910 _assert ( 'on labels (defaults)' , {
4911- ticks : [ 108 .75, 348 , 587 .25] ,
4912- gridLines : [ 108 .75, 348 , 587 .25] ,
4911+ ticks : [ 110 .75, 350 , 589 .25] ,
4912+ gridLines : [ 110 .75, 350 , 589 .25] ,
49134913 tickLabels : [ 106.421 , 345.671 , 585.25 ]
49144914 } ) ;
49154915 return Plotly . relayout ( gd , 'xaxis.tickson' , 'boundaries' ) ;
49164916 } )
49174917 . then ( function ( ) {
49184918 _assert ( 'inside on boundaries' , {
4919- ticks : [ 228.367 , 467.617 ] , // N.B. first and last tick are clipped
4920- gridLines : [ 228.367 , 467.617 ] ,
4919+ ticks : [ 230.369 , 469.619 ] , // N.B. first and last tick are clipped
4920+ gridLines : [ 230.369 , 469.619 ] ,
49214921 tickLabels : [ 106.421875 , 345.671875 , 585.25 ]
49224922 } ) ;
49234923 return Plotly . relayout ( gd , 'xaxis.ticks' , 'outside' ) ;
49244924 } )
49254925 . then ( function ( ) {
49264926 _assert ( 'outside on boundaries' , {
4927- ticks : [ 228.367 , 467.617 ] ,
4928- gridLines : [ 228.367 , 467.617 ] ,
4927+ ticks : [ 230.369 , 469.619 ] ,
4928+ gridLines : [ 230.369 , 469.619 ] ,
49294929 tickLabels : [ 106.421875 , 345.671875 , 585.25 ]
49304930 } ) ;
49314931 return Plotly . restyle ( gd , 'x' , [ [ 1 , 2 , 1 ] ] ) ;
49324932 } )
49334933 . then ( function ( ) {
49344934 _assert ( 'fallback to *labels* on non-category axes' , {
4935- ticks : [ 108 .75, 204.433 , 300.133 , 395 .85, 491.533 , 587 .25] ,
4936- gridLines : [ 108 .75, 204.433 , 300.133 , 395 .85, 491.533 , 587 .25] ,
4935+ ticks : [ 110 .75, 206.449 , 302.149 , 397 .85, 493.549 , 589 .25] ,
4936+ gridLines : [ 110 .75, 206.449 , 302.149 , 397 .85, 493.549 , 589 .25] ,
49374937 tickLabels : [ 106.421 , 197.121 , 292.821 , 388.521 , 484.221 , 584.921 ]
49384938 } ) ;
49394939 } )
@@ -8152,11 +8152,11 @@ describe('more react tests', function() {
81528152
81538153 Plotly . newPlot ( gd , fig1 )
81548154 . then ( function ( ) {
8155- expect ( gd . _fullLayout . xaxis . range ) . toBeCloseToArray ( [ - 0.134 , 2 ] ) ;
8155+ expect ( gd . _fullLayout . xaxis . range ) . toBeCloseToArray ( [ - 0.110 , 2 ] ) ;
81568156
81578157 return Plotly . react ( gd , fig2 ) ;
81588158 } ) . then ( function ( ) {
8159- expect ( gd . _fullLayout . xaxis . range ) . toBeCloseToArray ( [ - 0.192 , 2 ] ) ;
8159+ expect ( gd . _fullLayout . xaxis . range ) . toBeCloseToArray ( [ - 0.164 , 2 ] ) ;
81608160 } ) . then ( done , done . fail ) ;
81618161 } ) ;
81628162} ) ;
0 commit comments