Skip to content

Commit 7212a9f

Browse files
authored
Merge pull request #5941 from IgniteUI/mkirova/fix-5937
chore(*): Moving resizeObserverIgnoreError in configureTestSuite.
2 parents c0ba115 + 4ef9cde commit 7212a9f

19 files changed

+9
-59
lines changed

projects/igniteui-angular/src/lib/directives/for-of/for_of.directive.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import { take } from 'rxjs/operators';
2424
import { UIInteractions, wait } from '../../test-utils/ui-interactions.spec';
2525

2626
import { configureTestSuite } from '../../test-utils/configure-suite';
27-
import { resizeObserverIgnoreError } from '../../test-utils/helper-utils.spec';
2827

2928
describe('IgxForOf directive -', () => {
3029
const INACTIVE_VIRT_CONTAINER = 'igx-display-container--inactive';
@@ -294,7 +293,6 @@ describe('IgxForOf directive -', () => {
294293
});
295294

296295
it('should always fill available space for last chunk size calculation - vertical virtualization', async () => {
297-
resizeObserverIgnoreError();
298296
fix.componentInstance.height = '1900px';
299297
const virtualContainer = fix.componentInstance.parentVirtDir;
300298
virtualContainer.igxForSizePropName = 'height';

projects/igniteui-angular/src/lib/grids/grid/column-resizing.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { SampleTestData } from '../../test-utils/sample-test-data.spec';
1313
import { IColumnResized } from '../../test-utils/grid-interfaces.spec';
1414
import { MultiColumnHeadersComponent } from '../../test-utils/grid-samples.spec';
1515
import { configureTestSuite } from '../../test-utils/configure-suite';
16-
import { resizeObserverIgnoreError } from '../../test-utils/helper-utils.spec';
1716

1817
describe('IgxGrid - Deferred Column Resizing #grid', () => {
1918
configureTestSuite();
@@ -192,8 +191,6 @@ describe('IgxGrid - Deferred Column Resizing #grid', () => {
192191
const fixture = TestBed.createComponent(ResizableColumnsComponent);
193192
fixture.detectChanges();
194193

195-
resizeObserverIgnoreError();
196-
197194
const grid = fixture.componentInstance.grid;
198195
const column = grid.getColumnByName('ID');
199196
const headers: DebugElement[] = fixture.debugElement.queryAll(By.css(COLUMN_HEADER_CLASS));

projects/igniteui-angular/src/lib/grids/grid/grid-cell-selection.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { SelectionWithScrollsComponent,
1010
import { SortingDirection } from '../../data-operations/sorting-expression.interface';
1111
import { IgxStringFilteringOperand } from '../../data-operations/filtering-condition';
1212
import { UIInteractions, wait } from '../../test-utils/ui-interactions.spec';
13-
import { setupGridScrollDetection, resizeObserverIgnoreError } from '../../test-utils/helper-utils.spec';
13+
import { setupGridScrollDetection } from '../../test-utils/helper-utils.spec';
1414
import { DefaultSortingStrategy } from 'igniteui-angular';
1515
import { GridSelectionMode } from '../common/enums';
1616

@@ -1616,7 +1616,6 @@ describe('IgxGrid - Cell selection #grid', () => {
16161616
let detect;
16171617

16181618
beforeEach(fakeAsync(/** height/width setter rAF */() => {
1619-
resizeObserverIgnoreError();
16201619
fix = TestBed.createComponent(SelectionWithScrollsComponent);
16211620
fix.detectChanges();
16221621
grid = fix.componentInstance.grid;

projects/igniteui-angular/src/lib/grids/grid/grid-filtering-advanced.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { FilteringLogic } from '../../data-operations/filtering-expression.inter
1515
import {
1616
IgxGridAdvancedFilteringComponent
1717
} from '../../test-utils/grid-samples.spec';
18-
import { resizeObserverIgnoreError } from '../../test-utils/helper-utils.spec';
1918

2019
const ADVANCED_FILTERING_OPERATOR_LINE_AND_CSS_CLASS = 'igx-filter-tree__line--and';
2120
const ADVANCED_FILTERING_OPERATOR_LINE_OR_CSS_CLASS = 'igx-filter-tree__line--or';
@@ -42,7 +41,6 @@ describe('IgxGrid - Advanced Filtering', () => {
4241
describe('', () => {
4342
let fix, grid: IgxGridComponent;
4443
beforeEach(fakeAsync(() => {
45-
resizeObserverIgnoreError();
4644
fix = TestBed.createComponent(IgxGridAdvancedFilteringComponent);
4745
grid = fix.componentInstance.grid;
4846
fix.detectChanges();

projects/igniteui-angular/src/lib/grids/grid/grid-filtering-ui.spec.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import {
4343
IgxGridFilteringESFLoadOnDemandComponent,
4444
CustomFilteringStrategyComponent
4545
} from '../../test-utils/grid-samples.spec';
46-
import { HelperUtils, resizeObserverIgnoreError } from '../../test-utils/helper-utils.spec';
46+
import { HelperUtils } from '../../test-utils/helper-utils.spec';
4747
import { GridSelectionMode, FilterMode } from '../common/enums';
4848

4949
const FILTER_UI_ROW = 'igx-grid-filtering-row';
@@ -68,7 +68,6 @@ describe('IgxGrid - Filtering actions #grid', () => {
6868

6969
let fix, grid;
7070
beforeEach(fakeAsync(() => {
71-
resizeObserverIgnoreError();
7271

7372
fix = TestBed.createComponent(IgxGridFilteringComponent);
7473
fix.detectChanges();
@@ -1693,7 +1692,6 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
16931692
describe(null, () => {
16941693
let fix, grid;
16951694
beforeEach(fakeAsync(() => {
1696-
resizeObserverIgnoreError();
16971695
fix = TestBed.createComponent(IgxGridFilteringComponent);
16981696
fix.detectChanges();
16991697
grid = fix.componentInstance.grid;
@@ -3415,7 +3413,6 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
34153413
describe(null, () => {
34163414
let fix, grid;
34173415
beforeEach(fakeAsync(() => {
3418-
resizeObserverIgnoreError();
34193416
fix = TestBed.createComponent(IgxGridFilteringMCHComponent);
34203417
fix.detectChanges();
34213418
grid = fix.componentInstance.grid;
@@ -3531,7 +3528,6 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
35313528
describe(null, () => {
35323529
let fix, grid;
35333530
beforeEach(fakeAsync(() => {
3534-
resizeObserverIgnoreError();
35353531
fix = TestBed.createComponent(IgxGridFilteringScrollComponent);
35363532
grid = fix.componentInstance.grid;
35373533
fix.detectChanges();
@@ -3564,7 +3560,6 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
35643560
describe(null, () => {
35653561
let fix, grid;
35663562
beforeEach(fakeAsync(() => {
3567-
resizeObserverIgnoreError();
35683563
fix = TestBed.createComponent(IgxGridFilteringTemplateComponent);
35693564
fix.detectChanges();
35703565
grid = fix.componentInstance.grid;
@@ -3621,7 +3616,6 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
36213616
describe(null, () => {
36223617
let fix, grid;
36233618
beforeEach(fakeAsync(() => {
3624-
resizeObserverIgnoreError();
36253619
fix = TestBed.createComponent(IgxGridFilteringComponent);
36263620
grid = fix.componentInstance.grid;
36273621
grid.filterMode = FilterMode.excelStyleFilter;
@@ -5688,7 +5682,7 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
56885682
describe(null, () => {
56895683
let fix, grid;
56905684
beforeEach(fakeAsync(() => {
5691-
resizeObserverIgnoreError();
5685+
56925686
fix = TestBed.createComponent(IgxGridFilteringESFTemplatesComponent);
56935687
fix.detectChanges();
56945688
grid = fix.componentInstance.grid;
@@ -5731,7 +5725,6 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
57315725
describe(null, () => {
57325726
let fix, grid;
57335727
beforeEach(fakeAsync(() => {
5734-
resizeObserverIgnoreError();
57355728
fix = TestBed.createComponent(IgxTestExcelFilteringDatePickerComponent);
57365729
fix.detectChanges();
57375730
grid = fix.componentInstance.grid;
@@ -5851,7 +5844,6 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
58515844
let grid;
58525845

58535846
beforeEach(async(() => {
5854-
resizeObserverIgnoreError();
58555847
fix = TestBed.createComponent(CustomFilteringStrategyComponent);
58565848
grid = fix.componentInstance.grid;
58575849
fix.detectChanges();

projects/igniteui-angular/src/lib/grids/grid/grid-summary.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ describe('IgxGrid - Summaries #grid', () => {
209209
}));
210210

211211
it('should render correct data after hiding one bigger and then one smaller summary when scrolled to the bottom', (async () => {
212-
resizeObserverIgnoreError();
213212
const fixture = TestBed.createComponent(VirtualSummaryColumnComponent);
214213
fixture.detectChanges();
215214
await wait(100);
@@ -292,7 +291,6 @@ describe('IgxGrid - Summaries #grid', () => {
292291
let fix;
293292
let grid: IgxGridComponent;
294293
beforeEach(fakeAsync(/** height/width setter rAF */() => {
295-
resizeObserverIgnoreError();
296294
fix = TestBed.createComponent(SummaryColumnComponent);
297295
fix.detectChanges();
298296
grid = fix.componentInstance.grid;
@@ -1163,7 +1161,6 @@ describe('IgxGrid - Summaries #grid', () => {
11631161
let fix;
11641162
let grid;
11651163
beforeEach(fakeAsync(/** height/width setter rAF */() => {
1166-
resizeObserverIgnoreError();
11671164
fix = TestBed.createComponent(SummariesGroupByTransactionsComponent);
11681165
fix.detectChanges();
11691166
grid = fix.componentInstance.grid;

projects/igniteui-angular/src/lib/grids/grid/grid.component.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,6 @@ describe('IgxGrid Component Tests #grid', () => {
10161016

10171017
it(`should render 10 records if height is 100% and parent container's height is unset and
10181018
display density is changed`, async () => {
1019-
resizeObserverIgnoreError();
10201019
const fix = TestBed.createComponent(IgxGridWrappedInContComponent);
10211020
fix.detectChanges();
10221021

@@ -1593,8 +1592,6 @@ describe('IgxGrid Component Tests #grid', () => {
15931592
});
15941593

15951594
it('IgxTabs: should initialize a grid with correct width/height', async () => {
1596-
resizeObserverIgnoreError();
1597-
15981595
const grid = fix.componentInstance.grid3;
15991596
const tab = fix.componentInstance.tabs;
16001597
expect(grid.calcHeight).toBe(510);

projects/igniteui-angular/src/lib/grids/grid/grid.groupby.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,6 @@ describe('IgxGrid - GroupBy #grid', () => {
716716
}));
717717

718718
it('should allow grouping of already sorted column', async(() => {
719-
resizeObserverIgnoreError();
720719
const fix = TestBed.createComponent(DefaultGridComponent);
721720
const grid = fix.componentInstance.instance;
722721
fix.componentInstance.enableSorting = true;
@@ -1408,7 +1407,6 @@ describe('IgxGrid - GroupBy #grid', () => {
14081407
}));
14091408

14101409
it('should update horizontal virtualization state correcly when data row views are re-used from cache.', async () => {
1411-
resizeObserverIgnoreError();
14121410
const fix = TestBed.createComponent(GroupableGridComponent);
14131411
const grid = fix.componentInstance.instance;
14141412
fix.detectChanges();
@@ -1835,7 +1833,6 @@ describe('IgxGrid - GroupBy #grid', () => {
18351833
}));
18361834

18371835
it('should reorder groups when reordering chip', async () => {
1838-
resizeObserverIgnoreError();
18391836
const fix = TestBed.createComponent(DefaultGridComponent);
18401837
const grid = fix.componentInstance.instance;
18411838
fix.detectChanges();

projects/igniteui-angular/src/lib/grids/grid/grid.pagination.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { IgxGridComponent } from './grid.component';
99
import { configureTestSuite } from '../../test-utils/configure-suite';
1010
import { wait } from '../../test-utils/ui-interactions.spec';
1111
import { IgxNumberFilteringOperand } from '../../data-operations/filtering-condition';
12-
import { resizeObserverIgnoreError } from '../../test-utils/helper-utils.spec';
1312
import { GridFunctions } from '../../test-utils/grid-functions.spec';
1413

1514
describe('IgxGrid - Grid Paging #grid', () => {
@@ -192,7 +191,6 @@ describe('IgxGrid - Grid Paging #grid', () => {
192191
}));
193192

194193
it('change paging pages per page API', (async () => {
195-
resizeObserverIgnoreError();
196194
const fix = TestBed.createComponent(ReorderedColumnsComponent);
197195
fix.detectChanges();
198196

@@ -306,7 +304,6 @@ describe('IgxGrid - Grid Paging #grid', () => {
306304
}));
307305

308306
it('should change not leave prev page data after scorlling', (async () => {
309-
resizeObserverIgnoreError();
310307
const fix = TestBed.createComponent(PagingComponent);
311308
fix.componentInstance.perPage = 5;
312309
fix.componentInstance.grid.height = '300px';

projects/igniteui-angular/src/lib/grids/grid/grid.search.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { configureTestSuite } from '../../test-utils/configure-suite';
1212
import { wait } from '../../test-utils/ui-interactions.spec';
1313
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
1414
import { DataType } from '../../data-operations/data-util';
15-
import { setupGridScrollDetection, resizeObserverIgnoreError } from '../../test-utils/helper-utils.spec';
15+
import { setupGridScrollDetection } from '../../test-utils/helper-utils.spec';
1616

1717
describe('IgxGrid - search API #grid', () => {
1818
configureTestSuite();
@@ -834,7 +834,6 @@ describe('IgxGrid - search API #grid', () => {
834834
/* ScrollableGrid */
835835
describe('', () => {
836836
beforeEach(async () => {
837-
resizeObserverIgnoreError();
838837
fix = TestBed.createComponent(ScrollableGridSearchComponent);
839838
fix.detectChanges();
840839

@@ -1009,7 +1008,6 @@ describe('IgxGrid - search API #grid', () => {
10091008
/* GroupableGrid */
10101009
describe('', () => {
10111010
beforeEach(fakeAsync(/** height/width setter rAF */() => {
1012-
resizeObserverIgnoreError();
10131011
fix = TestBed.createComponent(GroupableGridSearchComponent);
10141012
fix.detectChanges();
10151013

0 commit comments

Comments
 (0)