@@ -110,6 +110,8 @@ describe('ui.grid.selection uiGridSelectionService', function() {
110
110
it ( 'should toggle selected with visible rows' , function ( ) {
111
111
grid . rows [ 0 ] . visible = true ;
112
112
grid . rows [ 1 ] . visible = false ;
113
+ grid . rows [ 2 ] . visible = false ;
114
+ grid . rows [ 2 ] . isSelected = true ;
113
115
114
116
uiGridSelectionService . toggleRowSelection ( grid , grid . rows [ 0 ] , null , true , false ) ;
115
117
expect ( grid . rows [ 0 ] . isSelected ) . toBe ( true ) ;
@@ -118,9 +120,9 @@ describe('ui.grid.selection uiGridSelectionService', function() {
118
120
119
121
uiGridSelectionService . toggleRowSelection ( grid , grid . rows [ 0 ] , null , true , false ) ;
120
122
expect ( grid . rows [ 0 ] . isSelected ) . toBe ( false ) ;
121
- grid . rows [ 1 ] . isSelected = true ;
122
- uiGridSelectionService . toggleRowSelection ( grid , grid . rows [ 1 ] , null , true , false ) ;
123
- expect ( grid . rows [ 1 ] . isSelected ) . toBe ( true ) ;
123
+
124
+ uiGridSelectionService . toggleRowSelection ( grid , grid . rows [ 2 ] , null , true , false ) ;
125
+ expect ( grid . rows [ 2 ] . isSelected ) . toBe ( true ) ;
124
126
} ) ;
125
127
126
128
it ( 'should not toggle selected with enableSelection: false' , function ( ) {
0 commit comments