11import { Component , ViewChild , OnInit } from '@angular/core' ;
22import { IgxActionStripComponent } from '../action-strip.component' ;
33import { configureTestSuite } from '../../test-utils/configure-suite' ;
4- import { TestBed , fakeAsync , waitForAsync } from '@angular/core/testing' ;
4+ import { TestBed , waitForAsync } from '@angular/core/testing' ;
55import { IgxIconModule } from '../../icon/public_api' ;
66import { IgxGridModule , IgxGridComponent } from '../../grids/grid/public_api' ;
77import { NoopAnimationsModule } from '@angular/platform-browser/animations' ;
@@ -44,15 +44,13 @@ describe('igxGridEditingActions #grid ', () => {
4444 } ) . compileComponents ( ) ;
4545 } ) ) ;
4646
47-
48-
4947 describe ( 'Base ' , ( ) => {
50- beforeEach ( fakeAsync ( /** height/width setter rAF */ ( ) => {
48+ beforeEach ( ( ) => {
5149 fixture = TestBed . createComponent ( IgxActionStripTestingComponent ) ;
5250 fixture . detectChanges ( ) ;
5351 actionStrip = fixture . componentInstance . actionStrip ;
5452 grid = fixture . componentInstance . grid ;
55- } ) ) ;
53+ } ) ;
5654
5755 it ( 'should allow editing and deleting row' , ( ) => {
5856 let deleteIcon ;
@@ -121,12 +119,12 @@ describe('igxGridEditingActions #grid ', () => {
121119 } ) ;
122120
123121 describe ( 'Menu ' , ( ) => {
124- beforeEach ( fakeAsync ( /** height/width setter rAF */ ( ) => {
122+ beforeEach ( ( ) => {
125123 fixture = TestBed . createComponent ( IgxActionStripEditMenuComponent ) ;
126124 fixture . detectChanges ( ) ;
127125 actionStrip = fixture . componentInstance . actionStrip ;
128126 grid = fixture . componentInstance . grid ;
129- } ) ) ;
127+ } ) ;
130128 it ( 'should allow editing and deleting row via menu' , async ( ) => {
131129 const row = grid . rowList . toArray ( ) [ 0 ] ;
132130 actionStrip . show ( row ) ;
@@ -180,12 +178,12 @@ describe('igxGridEditingActions #grid ', () => {
180178 } ) ;
181179
182180 describe ( 'integration with pinning actions ' , ( ) => {
183- beforeEach ( fakeAsync ( /** height/width setter rAF */ ( ) => {
181+ beforeEach ( ( ) => {
184182 fixture = TestBed . createComponent ( IgxActionStripPinEditComponent ) ;
185183 fixture . detectChanges ( ) ;
186184 actionStrip = fixture . componentInstance . actionStrip ;
187185 grid = fixture . componentInstance . grid ;
188- } ) ) ;
186+ } ) ;
189187 it ( 'should remove editing actions on disabled rows' , ( ) => {
190188 grid . rowList . first . pin ( ) ;
191189 fixture . detectChanges ( ) ;
@@ -200,12 +198,12 @@ describe('igxGridEditingActions #grid ', () => {
200198 } ) ;
201199
202200 describe ( 'auto show/hide' , ( ) => {
203- beforeEach ( fakeAsync ( /** height/width setter rAF */ ( ) => {
201+ beforeEach ( ( ) => {
204202 fixture = TestBed . createComponent ( IgxActionStripPinEditComponent ) ;
205203 fixture . detectChanges ( ) ;
206204 actionStrip = fixture . componentInstance . actionStrip ;
207205 grid = fixture . componentInstance . grid ;
208- } ) ) ;
206+ } ) ;
209207 it ( 'should auto-show on mouse enter of row.' , ( ) => {
210208 const row = grid . gridAPI . get_row_by_index ( 0 ) ;
211209 const rowElem = row . nativeElement ;
@@ -249,13 +247,13 @@ describe('igxGridEditingActions #grid ', () => {
249247
250248 describe ( 'auto show/hide in HierarchicalGrid' , ( ) => {
251249 let actionStripRoot ; let actionStripChild ; let hierarchicalGrid : IgxHierarchicalGridComponent ;
252- beforeEach ( fakeAsync ( /** height/width setter rAF */ ( ) => {
250+ beforeEach ( ( ) => {
253251 fixture = TestBed . createComponent ( IgxHierarchicalGridActionStripComponent ) ;
254252 fixture . detectChanges ( ) ;
255253 actionStripRoot = fixture . componentInstance . actionStripRoot ;
256254 actionStripChild = fixture . componentInstance . actionStripChild ;
257255 hierarchicalGrid = fixture . componentInstance . hgrid ;
258- } ) ) ;
256+ } ) ;
259257
260258 it ( 'should auto-show root actionStrip on mouse enter of root row.' , ( ) => {
261259 const row = hierarchicalGrid . gridAPI . get_row_by_index ( 0 ) ;
0 commit comments