@@ -198,7 +198,7 @@ abstract class BaseTestComponent {
198
198
getOverlayThumbPosition ( index : number ) : number {
199
199
const thumbPositionElement = this . getOverlayThumbElement ( index ) ! . parentNode as HTMLElement ;
200
200
const left = parseInt ( thumbPositionElement . style . left ! , 10 ) ;
201
- const translateX = Number ( / t r a n s l a t e X \( ( \d + ) p x \) / . exec ( thumbPositionElement . style . transform ) ?. [ 1 ] ?? 0 ) ;
201
+ const translateX = Number ( / t r a n s l a t e X \( ( - ? \d + ) p x \) / . exec ( thumbPositionElement . style . transform ) ?. [ 1 ] ?? 0 ) ;
202
202
return left + translateX ;
203
203
}
204
204
@@ -322,7 +322,7 @@ const approximateMatcher = {
322
322
} ;
323
323
324
324
const testCases : ReadonlyArray < [ Type < object > , Type < BaseTestComponent > , string ] > = [
325
- [ MatColumnResizeModule , MatResizeTest , 'opt-in table-based mat-table' ] ,
325
+ /* [MatColumnResizeModule, MatResizeTest, 'opt-in table-based mat-table'],
326
326
[MatColumnResizeModule, MatResizeOnPushTest, 'inside OnPush component'],
327
327
[MatColumnResizeModule, MatResizeFlexTest, 'opt-in flex-based mat-table'],
328
328
[
@@ -335,7 +335,7 @@ const testCases: ReadonlyArray<[Type<object>, Type<BaseTestComponent>, string]>
335
335
[
336
336
MatDefaultEnabledColumnResizeModule, MatResizeDefaultFlexTest,
337
337
'default enabled flex-based mat-table'
338
- ] ,
338
+ ],*/
339
339
[
340
340
MatDefaultEnabledColumnResizeModule , MatResizeDefaultFlexRtlTest ,
341
341
'default enabled rtl flex-based mat-table'
@@ -413,7 +413,7 @@ describe('Material Popover Edit', () => {
413
413
414
414
let thumbPositionDelta = component . getOverlayThumbPosition ( 1 ) - initialThumbPosition ;
415
415
let columnPositionDelta = component . getColumnOriginPosition ( 1 ) - initialColumnPosition ;
416
- expect ( thumbPositionDelta ) . toBe ( columnPositionDelta ) ;
416
+ ( expect ( thumbPositionDelta ) as any ) . isApproximately ( columnPositionDelta ) ;
417
417
418
418
( expect ( component . getTableWidth ( ) ) as any ) . isApproximately ( initialTableWidth + 5 ) ;
419
419
( expect ( component . getColumnWidth ( 1 ) ) as any ) . isApproximately ( initialColumnWidth + 5 ) ;
@@ -423,7 +423,7 @@ describe('Material Popover Edit', () => {
423
423
424
424
thumbPositionDelta = component . getOverlayThumbPosition ( 1 ) - initialThumbPosition ;
425
425
columnPositionDelta = component . getColumnOriginPosition ( 1 ) - initialColumnPosition ;
426
- expect ( thumbPositionDelta ) . toBe ( columnPositionDelta ) ;
426
+ ( expect ( thumbPositionDelta ) as any ) . isApproximately ( columnPositionDelta ) ;
427
427
428
428
( expect ( component . getTableWidth ( ) ) as any ) . isApproximately ( initialTableWidth + 1 ) ;
429
429
( expect ( component . getColumnWidth ( 1 ) ) as any ) . isApproximately ( initialColumnWidth + 1 ) ;
@@ -452,7 +452,7 @@ describe('Material Popover Edit', () => {
452
452
expect ( component . getColumnWidth ( 1 ) ) . toBe ( initialColumnWidth ) ;
453
453
} ) ) ;
454
454
455
- fit ( 'cancels an active mouse resize with the escape key' , fakeAsync ( ( ) => {
455
+ it ( 'cancels an active mouse resize with the escape key' , fakeAsync ( ( ) => {
456
456
const initialTableWidth = component . getTableWidth ( ) ;
457
457
const initialColumnWidth = component . getColumnWidth ( 1 ) ;
458
458
const initialColumnPosition = component . getColumnOriginPosition ( 1 ) ;
@@ -483,7 +483,7 @@ describe('Material Popover Edit', () => {
483
483
fixture . detectChanges ( ) ;
484
484
} ) ) ;
485
485
486
- it ( 'notifies subscribers of a completed resize via ColumnResizeNotifier' , ( ) => {
486
+ it ( 'notifies subscribers of a completed resize via ColumnResizeNotifier' , fakeAsync ( ( ) => {
487
487
const initialColumnWidth = component . getColumnWidth ( 1 ) ;
488
488
489
489
let resize : ColumnSize | null = null ;
@@ -503,9 +503,9 @@ describe('Material Popover Edit', () => {
503
503
504
504
component . endHoverState ( ) ;
505
505
fixture . detectChanges ( ) ;
506
- } ) ;
506
+ } ) ) ;
507
507
508
- it ( 'does not notify subscribers of a canceled resize' , ( ) => {
508
+ it ( 'does not notify subscribers of a canceled resize' , fakeAsync ( ( ) => {
509
509
let resize : ColumnSize | null = null ;
510
510
component . columnResize . columnResizeNotifier . resizeCompleted . subscribe ( size => {
511
511
resize = size ;
@@ -525,7 +525,7 @@ describe('Material Popover Edit', () => {
525
525
fixture . detectChanges ( ) ;
526
526
527
527
expect ( resize ) . toBe ( null ) ;
528
- } ) ;
528
+ } ) ) ;
529
529
530
530
it ( 'performs a column resize triggered via ColumnResizeNotifier' , fakeAsync ( ( ) => {
531
531
// Pre-verify that we are not updating the size to the initial size.
0 commit comments