@@ -12,7 +12,6 @@ import { configureTestSuite } from '../../test-utils/configure-suite';
1212import { GridSelectionMode , ColumnDisplayOrder } from '../common/enums' ;
1313import { ControlsFunction } from '../../test-utils/controls-functions.spec' ;
1414import { IgxColumnActionsComponent } from '../column-actions/column-actions.component' ;
15- import { IColumnVisibilityChangingEventArgs } from '../common/events' ;
1615
1716describe ( 'Column Hiding UI #grid' , ( ) => {
1817 configureTestSuite ( ) ;
@@ -148,7 +147,7 @@ describe('Column Hiding UI #grid', () => {
148147 grid . columns [ 3 ] . disableHiding = undefined ;
149148 fix . detectChanges ( ) ;
150149
151- verifyCheckbox ( 'Released' , true , false , columnChooserElement , fix ) ;
150+ verifyCheckbox ( 'Released' , true , false , columnChooserElement ) ;
152151 } ) ;
153152
154153 it ( 'onColumnToggled, onColumnVisibilityChanged, onColumnVisibilityChanging event is fired on toggling checkboxes.' , ( ) => {
@@ -201,7 +200,7 @@ describe('Column Hiding UI #grid', () => {
201200
202201 it ( '- toggling column checkbox checked state successfully changes the grid column visibility.' , ( ) => {
203202 const checkbox = GridFunctions . getColumnChooserItemElement ( columnChooserElement , 'ReleaseDate' ) ;
204- verifyCheckbox ( 'ReleaseDate' , true , false , columnChooserElement , fix ) ;
203+ verifyCheckbox ( 'ReleaseDate' , true , false , columnChooserElement ) ;
205204
206205 const column = grid . getColumnByName ( 'ReleaseDate' ) ;
207206 verifyColumnIsHidden ( column , false , 4 ) ;
@@ -222,25 +221,25 @@ describe('Column Hiding UI #grid', () => {
222221 spyOn ( grid . columnVisibilityChanging , 'emit' ) ;
223222
224223 const name = 'ReleaseDate' ;
225- verifyCheckbox ( name , true , false , columnChooserElement , fix ) ;
224+ verifyCheckbox ( name , true , false , columnChooserElement ) ;
226225 const column = grid . getColumnByName ( name ) ;
227226
228227 column . hidden = true ;
229228 fix . detectChanges ( ) ;
230229
231- verifyCheckbox ( name , false , false , columnChooserElement , fix ) ;
230+ verifyCheckbox ( name , false , false , columnChooserElement ) ;
232231 verifyColumnIsHidden ( column , true , 3 ) ;
233232
234233 column . hidden = false ;
235234 fix . detectChanges ( ) ;
236235
237- verifyCheckbox ( name , true , false , columnChooserElement , fix ) ;
236+ verifyCheckbox ( name , true , false , columnChooserElement ) ;
238237 verifyColumnIsHidden ( column , false , 4 ) ;
239238
240239 column . hidden = undefined ;
241240 fix . detectChanges ( ) ;
242241
243- verifyCheckbox ( name , true , false , columnChooserElement , fix ) ;
242+ verifyCheckbox ( name , true , false , columnChooserElement ) ;
244243 verifyColumnIsHidden ( column , undefined , 4 ) ;
245244
246245 column . hidden = true ;
@@ -250,7 +249,7 @@ describe('Column Hiding UI #grid', () => {
250249 column . hidden = null ;
251250 fix . detectChanges ( ) ;
252251
253- verifyCheckbox ( name , true , false , columnChooserElement , fix ) ;
252+ verifyCheckbox ( name , true , false , columnChooserElement ) ;
254253 verifyColumnIsHidden ( column , null , 4 ) ;
255254 expect ( grid . columnVisibilityChanging . emit ) . toHaveBeenCalledTimes ( 0 ) ;
256255 expect ( grid . onColumnVisibilityChanged . emit ) . toHaveBeenCalledTimes ( 0 ) ;
@@ -265,7 +264,7 @@ describe('Column Hiding UI #grid', () => {
265264 const hideAll = GridFunctions . getColumnChooserButton ( columnChooserElement , 'Hide All' ) . nativeElement ;
266265
267266 const checkbox = GridFunctions . getColumnChooserItemElement ( columnChooserElement , name ) ;
268- verifyCheckbox ( name , false , false , columnChooserElement , fix ) ;
267+ verifyCheckbox ( name , false , false , columnChooserElement ) ;
269268 ControlsFunction . verifyButtonIsDisabled ( showAll , false ) ;
270269 ControlsFunction . verifyButtonIsDisabled ( hideAll ) ;
271270
@@ -294,7 +293,7 @@ describe('Column Hiding UI #grid', () => {
294293 const hideAll = GridFunctions . getColumnChooserButton ( columnChooserElement , 'Hide All' ) . nativeElement ;
295294
296295 const checkbox = GridFunctions . getColumnChooserItemElement ( columnChooserElement , name ) ;
297- verifyCheckbox ( name , true , false , columnChooserElement , fix ) ;
296+ verifyCheckbox ( name , true , false , columnChooserElement ) ;
298297 ControlsFunction . verifyButtonIsDisabled ( showAll ) ;
299298 ControlsFunction . verifyButtonIsDisabled ( hideAll , false ) ;
300299
@@ -722,16 +721,16 @@ describe('Column Hiding UI #grid', () => {
722721 GridFunctions . clickColumnChooserItem ( columnChooserElement , 'Person Details' ) ;
723722 fix . detectChanges ( ) ;
724723
725- verifyCheckbox ( 'Person Details' , false , false , columnChooserElement , fix ) ;
726- verifyCheckbox ( 'ContactName' , false , false , columnChooserElement , fix ) ;
727- verifyCheckbox ( 'ContactTitle' , false , false , columnChooserElement , fix ) ;
724+ verifyCheckbox ( 'Person Details' , false , false , columnChooserElement ) ;
725+ verifyCheckbox ( 'ContactName' , false , false , columnChooserElement ) ;
726+ verifyCheckbox ( 'ContactTitle' , false , false , columnChooserElement ) ;
728727
729728 verifyColumnIsHidden ( grid . columns [ 3 ] , true , 4 ) ;
730729 verifyColumnIsHidden ( grid . columns [ 4 ] , true , 4 ) ;
731730 verifyColumnIsHidden ( grid . columns [ 5 ] , true , 4 ) ;
732731
733- verifyCheckbox ( 'CompanyName' , true , false , columnChooserElement , fix ) ;
734- verifyCheckbox ( 'General Information' , true , false , columnChooserElement , fix ) ;
732+ verifyCheckbox ( 'CompanyName' , true , false , columnChooserElement ) ;
733+ verifyCheckbox ( 'General Information' , true , false , columnChooserElement ) ;
735734
736735 GridFunctions . clickColumnChooserItem ( columnChooserElement , 'Person Details' ) ;
737736 fix . detectChanges ( ) ;
@@ -740,58 +739,58 @@ describe('Column Hiding UI #grid', () => {
740739 verifyColumnIsHidden ( grid . columns [ 4 ] , false , 7 ) ;
741740 verifyColumnIsHidden ( grid . columns [ 5 ] , false , 7 ) ;
742741
743- verifyCheckbox ( 'Person Details' , true , false , columnChooserElement , fix ) ;
744- verifyCheckbox ( 'ContactName' , true , false , columnChooserElement , fix ) ;
745- verifyCheckbox ( 'ContactTitle' , true , false , columnChooserElement , fix ) ;
742+ verifyCheckbox ( 'Person Details' , true , false , columnChooserElement ) ;
743+ verifyCheckbox ( 'ContactName' , true , false , columnChooserElement ) ;
744+ verifyCheckbox ( 'ContactTitle' , true , false , columnChooserElement ) ;
746745
747- verifyCheckbox ( 'CompanyName' , true , false , columnChooserElement , fix ) ;
748- verifyCheckbox ( 'General Information' , true , false , columnChooserElement , fix ) ;
746+ verifyCheckbox ( 'CompanyName' , true , false , columnChooserElement ) ;
747+ verifyCheckbox ( 'General Information' , true , false , columnChooserElement ) ;
749748 } ) ;
750749
751750 it ( 'checks & hides all descendants when hiding top level parent.' , ( ) => {
752751 GridFunctions . clickColumnChooserItem ( columnChooserElement , 'General Information' ) ;
753752 fix . detectChanges ( ) ;
754753
755- verifyCheckbox ( 'General Information' , false , false , columnChooserElement , fix ) ;
756- verifyCheckbox ( 'CompanyName' , false , false , columnChooserElement , fix ) ;
754+ verifyCheckbox ( 'General Information' , false , false , columnChooserElement ) ;
755+ verifyCheckbox ( 'CompanyName' , false , false , columnChooserElement ) ;
757756
758- verifyCheckbox ( 'Person Details' , false , false , columnChooserElement , fix ) ;
759- verifyCheckbox ( 'ContactName' , false , false , columnChooserElement , fix ) ;
760- verifyCheckbox ( 'ContactTitle' , false , false , columnChooserElement , fix ) ;
757+ verifyCheckbox ( 'Person Details' , false , false , columnChooserElement ) ;
758+ verifyCheckbox ( 'ContactName' , false , false , columnChooserElement ) ;
759+ verifyCheckbox ( 'ContactTitle' , false , false , columnChooserElement ) ;
761760
762- verifyCheckbox ( 'Missing' , true , false , columnChooserElement , fix ) ;
763- verifyCheckbox ( 'ID' , true , false , columnChooserElement , fix ) ;
761+ verifyCheckbox ( 'Missing' , true , false , columnChooserElement ) ;
762+ verifyCheckbox ( 'ID' , true , false , columnChooserElement ) ;
764763
765764 GridFunctions . clickColumnChooserItem ( columnChooserElement , 'General Information' ) ;
766765 fix . detectChanges ( ) ;
767766
768- verifyCheckbox ( 'General Information' , true , false , columnChooserElement , fix ) ;
769- verifyCheckbox ( 'CompanyName' , true , false , columnChooserElement , fix ) ;
767+ verifyCheckbox ( 'General Information' , true , false , columnChooserElement ) ;
768+ verifyCheckbox ( 'CompanyName' , true , false , columnChooserElement ) ;
770769
771- verifyCheckbox ( 'Person Details' , true , false , columnChooserElement , fix ) ;
772- verifyCheckbox ( 'ContactName' , true , false , columnChooserElement , fix ) ;
773- verifyCheckbox ( 'ContactTitle' , true , false , columnChooserElement , fix ) ;
770+ verifyCheckbox ( 'Person Details' , true , false , columnChooserElement ) ;
771+ verifyCheckbox ( 'ContactName' , true , false , columnChooserElement ) ;
772+ verifyCheckbox ( 'ContactTitle' , true , false , columnChooserElement ) ;
774773 } ) ;
775774
776775 it ( 'checks/unchecks parent when all children are checked/unchecked.' , ( ) => {
777- verifyCheckbox ( 'Person Details' , true , false , columnChooserElement , fix ) ;
776+ verifyCheckbox ( 'Person Details' , true , false , columnChooserElement ) ;
778777 GridFunctions . clickColumnChooserItem ( columnChooserElement , 'ContactName' ) ;
779778 fix . detectChanges ( ) ;
780779
781- verifyCheckbox ( 'Person Details' , true , false , columnChooserElement , fix ) ;
780+ verifyCheckbox ( 'Person Details' , true , false , columnChooserElement ) ;
782781 GridFunctions . clickColumnChooserItem ( columnChooserElement , 'ContactTitle' ) ;
783782 fix . detectChanges ( ) ;
784783
785- verifyCheckbox ( 'Person Details' , false , false , columnChooserElement , fix ) ;
784+ verifyCheckbox ( 'Person Details' , false , false , columnChooserElement ) ;
786785 GridFunctions . clickColumnChooserItem ( columnChooserElement , 'ContactName' ) ;
787786 fix . detectChanges ( ) ;
788787
789- verifyCheckbox ( 'Person Details' , true , false , columnChooserElement , fix ) ;
788+ verifyCheckbox ( 'Person Details' , true , false , columnChooserElement ) ;
790789
791790 GridFunctions . clickColumnChooserItem ( columnChooserElement , 'ContactTitle' ) ;
792791 fix . detectChanges ( ) ;
793792
794- verifyCheckbox ( 'Person Details' , true , false , columnChooserElement , fix ) ;
793+ verifyCheckbox ( 'Person Details' , true , false , columnChooserElement ) ;
795794 } ) ;
796795
797796 it ( 'filters group columns properly.' , ( ) => {
0 commit comments