@@ -514,23 +514,26 @@ describe('annotations autorange', function() {
514
514
515
515
function assertRanges ( x , y , x2 , y2 , x3 , y3 ) {
516
516
var fullLayout = gd . _fullLayout ;
517
- var PREC = 1 ;
518
517
518
+ var PREC = 1 ;
519
519
// xaxis2 need a bit more tolerance to pass on CI
520
520
// this most likely due to the different text bounding box values
521
521
// on headfull vs headless browsers.
522
522
// but also because it's a date axis that we've converted to ms
523
523
var PRECX2 = - 10 ;
524
524
// yaxis2 needs a bit more now too...
525
525
var PRECY2 = 0.2 ;
526
+ // and xaxis3 too...
527
+ var PRECX3 = 0.2 ;
528
+
526
529
var dateAx = fullLayout . xaxis2 ;
527
530
528
531
expect ( fullLayout . xaxis . range ) . toBeCloseToArray ( x , PREC , '- xaxis' ) ;
529
532
expect ( fullLayout . yaxis . range ) . toBeCloseToArray ( y , PREC , '- yaxis' ) ;
530
533
expect ( Lib . simpleMap ( dateAx . range , dateAx . r2l ) )
531
534
. toBeCloseToArray ( Lib . simpleMap ( x2 , dateAx . r2l ) , PRECX2 , 'xaxis2 ' + dateAx . range ) ;
532
535
expect ( fullLayout . yaxis2 . range ) . toBeCloseToArray ( y2 , PRECY2 , 'yaxis2' ) ;
533
- expect ( fullLayout . xaxis3 . range ) . toBeCloseToArray ( x3 , PREC , 'xaxis3' ) ;
536
+ expect ( fullLayout . xaxis3 . range ) . toBeCloseToArray ( x3 , PRECX3 , 'xaxis3' ) ;
534
537
expect ( fullLayout . yaxis3 . range ) . toBeCloseToArray ( y3 , PREC , 'yaxis3' ) ;
535
538
}
536
539
0 commit comments