@@ -551,9 +551,9 @@ matPopoverEditTabOut`, fakeAsync(() => {
551551 const paneRect = component . getEditPane ( ) ! . getBoundingClientRect ( ) ;
552552 const cellRect = component . getEditCell ( ) . getBoundingClientRect ( ) ;
553553
554- expect ( paneRect . width ) . toBe ( cellRect . width ) ;
555- expect ( paneRect . left ) . toBe ( cellRect . left ) ;
556- expect ( paneRect . top ) . toBe ( cellRect . top ) ;
554+ expect ( paneRect . width ) . toBeCloseTo ( cellRect . width , 1 ) ;
555+ expect ( paneRect . left ) . toBeCloseTo ( cellRect . left , 1 ) ;
556+ expect ( paneRect . top ) . toBeCloseTo ( cellRect . top , 1 ) ;
557557 clearLeftoverTimers ( ) ;
558558 } ) ) ;
559559
@@ -567,25 +567,25 @@ matPopoverEditTabOut`, fakeAsync(() => {
567567 component . openLens ( ) ;
568568
569569 let paneRect = component . getEditPane ( ) ! . getBoundingClientRect ( ) ;
570- expect ( paneRect . top ) . toBe ( cellRects [ 0 ] . top ) ;
571- expect ( paneRect . left ) . toBe ( cellRects [ 0 ] . left ) ;
572- expect ( paneRect . right ) . toBe ( cellRects [ 1 ] . right ) ;
570+ expect ( paneRect . top ) . toBeCloseTo ( cellRects [ 0 ] . top , 1 ) ;
571+ expect ( paneRect . left ) . toBeCloseTo ( cellRects [ 0 ] . left , 1 ) ;
572+ expect ( paneRect . right ) . toBeCloseTo ( cellRects [ 1 ] . right , 1 ) ;
573573
574574 component . colspan = { after : 1 } ;
575575 fixture . detectChanges ( ) ;
576576
577577 paneRect = component . getEditPane ( ) ! . getBoundingClientRect ( ) ;
578- expect ( paneRect . top ) . toBe ( cellRects [ 1 ] . top ) ;
579- expect ( paneRect . left ) . toBe ( cellRects [ 1 ] . left ) ;
580- expect ( paneRect . right ) . toBe ( cellRects [ 2 ] . right ) ;
578+ expect ( paneRect . top ) . toBeCloseTo ( cellRects [ 1 ] . top , 1 ) ;
579+ expect ( paneRect . left ) . toBeCloseTo ( cellRects [ 1 ] . left , 1 ) ;
580+ expect ( paneRect . right ) . toBeCloseTo ( cellRects [ 2 ] . right , 1 ) ;
581581
582582 component . colspan = { before : 1 , after : 1 } ;
583583 fixture . detectChanges ( ) ;
584584
585585 paneRect = component . getEditPane ( ) ! . getBoundingClientRect ( ) ;
586- expect ( paneRect . top ) . toBe ( cellRects [ 0 ] . top ) ;
587- expect ( paneRect . left ) . toBe ( cellRects [ 0 ] . left ) ;
588- expect ( paneRect . right ) . toBe ( cellRects [ 2 ] . right ) ;
586+ expect ( paneRect . top ) . toBeCloseTo ( cellRects [ 0 ] . top , 1 ) ;
587+ expect ( paneRect . left ) . toBeCloseTo ( cellRects [ 0 ] . left , 1 ) ;
588+ expect ( paneRect . right ) . toBeCloseTo ( cellRects [ 2 ] . right , 1 ) ;
589589 clearLeftoverTimers ( ) ;
590590 } ) ) ;
591591
0 commit comments