@@ -334,7 +334,7 @@ describe('ui.grid.saveState uiGridSaveStateService', function () {
334
334
uiGridSaveStateService . restoreScrollFocus ( grid , $scope , { focus : true , rowVal : { identity : false , row : 2 } } ) ;
335
335
336
336
expect ( grid . api . cellNav . scrollTo ) . not . toHaveBeenCalled ( ) ;
337
- expect ( grid . api . cellNav . scrollToFocus ) . toHaveBeenCalledWith ( $scope , grid . rows [ 3 ] . entity , undefined ) ;
337
+ expect ( grid . api . cellNav . scrollToFocus ) . toHaveBeenCalledWith ( grid . rows [ 3 ] . entity , undefined ) ;
338
338
} ) ;
339
339
340
340
it ( 'restores focus row only, with identity function' , function ( ) {
@@ -350,7 +350,7 @@ describe('ui.grid.saveState uiGridSaveStateService', function () {
350
350
uiGridSaveStateService . restoreScrollFocus ( grid , $scope , { focus : true , rowVal : { identity : true , row : 'a_3' } } ) ;
351
351
352
352
expect ( grid . api . cellNav . scrollTo ) . not . toHaveBeenCalled ( ) ;
353
- expect ( grid . api . cellNav . scrollToFocus ) . toHaveBeenCalledWith ( $scope , grid . rows [ 3 ] . entity , undefined ) ;
353
+ expect ( grid . api . cellNav . scrollToFocus ) . toHaveBeenCalledWith ( grid . rows [ 3 ] . entity , undefined ) ;
354
354
} ) ;
355
355
356
356
it ( 'restores focus col only, without identity function' , function ( ) {
@@ -361,7 +361,7 @@ describe('ui.grid.saveState uiGridSaveStateService', function () {
361
361
uiGridSaveStateService . restoreScrollFocus ( grid , $scope , { focus : true , colName : 'col2' } ) ;
362
362
363
363
expect ( grid . api . cellNav . scrollTo ) . not . toHaveBeenCalled ( ) ;
364
- expect ( grid . api . cellNav . scrollToFocus ) . toHaveBeenCalledWith ( $scope , null , grid . options . columnDefs [ 1 ] ) ;
364
+ expect ( grid . api . cellNav . scrollToFocus ) . toHaveBeenCalledWith ( null , grid . options . columnDefs [ 1 ] ) ;
365
365
} ) ;
366
366
367
367
it ( 'restores focus col only, with identity function' , function ( ) {
@@ -377,7 +377,7 @@ describe('ui.grid.saveState uiGridSaveStateService', function () {
377
377
uiGridSaveStateService . restoreScrollFocus ( grid , $scope , { focus : true , colName : 'col2' } ) ;
378
378
379
379
expect ( grid . api . cellNav . scrollTo ) . not . toHaveBeenCalled ( ) ;
380
- expect ( grid . api . cellNav . scrollToFocus ) . toHaveBeenCalledWith ( $scope , null , grid . options . columnDefs [ 1 ] ) ;
380
+ expect ( grid . api . cellNav . scrollToFocus ) . toHaveBeenCalledWith ( null , grid . options . columnDefs [ 1 ] ) ;
381
381
} ) ;
382
382
383
383
it ( 'restores focus col and row, without identity function' , function ( ) {
@@ -388,7 +388,7 @@ describe('ui.grid.saveState uiGridSaveStateService', function () {
388
388
uiGridSaveStateService . restoreScrollFocus ( grid , $scope , { focus : true , colName : 'col2' , rowVal : { identity : false , row : 2 } } ) ;
389
389
390
390
expect ( grid . api . cellNav . scrollTo ) . not . toHaveBeenCalled ( ) ;
391
- expect ( grid . api . cellNav . scrollToFocus ) . toHaveBeenCalledWith ( $scope , grid . rows [ 3 ] . entity , grid . options . columnDefs [ 1 ] ) ;
391
+ expect ( grid . api . cellNav . scrollToFocus ) . toHaveBeenCalledWith ( grid . rows [ 3 ] . entity , grid . options . columnDefs [ 1 ] ) ;
392
392
} ) ;
393
393
394
394
it ( 'restores focus col and row, with identity function' , function ( ) {
@@ -404,7 +404,7 @@ describe('ui.grid.saveState uiGridSaveStateService', function () {
404
404
uiGridSaveStateService . restoreScrollFocus ( grid , $scope , { focus : true , colName : 'col2' , rowVal : { identity : true , row : 'a_3' } } ) ;
405
405
406
406
expect ( grid . api . cellNav . scrollTo ) . not . toHaveBeenCalled ( ) ;
407
- expect ( grid . api . cellNav . scrollToFocus ) . toHaveBeenCalledWith ( $scope , grid . rows [ 3 ] . entity , grid . options . columnDefs [ 1 ] ) ;
407
+ expect ( grid . api . cellNav . scrollToFocus ) . toHaveBeenCalledWith ( grid . rows [ 3 ] . entity , grid . options . columnDefs [ 1 ] ) ;
408
408
} ) ;
409
409
410
410
} ) ;
@@ -532,7 +532,7 @@ describe('ui.grid.saveState uiGridSaveStateService', function () {
532
532
533
533
expect ( grid . api . selection . getSelectedGridRows ( ) ) . toEqual ( [ grid . rows [ 0 ] , grid . rows [ 3 ] ] ) ;
534
534
expect ( grid . api . cellNav . scrollTo ) . not . toHaveBeenCalled ( ) ;
535
- expect ( grid . api . cellNav . scrollToFocus ) . toHaveBeenCalledWith ( $scope , grid . rows [ 2 ] . entity , grid . options . columnDefs [ 3 ] ) ;
535
+ expect ( grid . api . cellNav . scrollToFocus ) . toHaveBeenCalledWith ( grid . rows [ 2 ] . entity , grid . options . columnDefs [ 3 ] ) ;
536
536
} ) ;
537
537
} ) ;
538
538
} ) ;
0 commit comments