@@ -279,7 +279,7 @@ describe('MatChipList', () => {
279279
280280 describe ( 'when the input has focus' , ( ) => {
281281
282- it ( 'should focus the last chip when press DELETE' , ( ) => {
282+ it ( 'should not focus the last chip when press DELETE' , ( ) => {
283283 let nativeInput = fixture . nativeElement . querySelector ( 'input' ) ;
284284 let DELETE_EVENT : KeyboardEvent =
285285 createKeyboardEvent ( 'keydown' , DELETE , nativeInput ) ;
@@ -292,8 +292,8 @@ describe('MatChipList', () => {
292292 chipListInstance . _keydown ( DELETE_EVENT ) ;
293293 fixture . detectChanges ( ) ;
294294
295- // It focuses the last chip
296- expect ( manager . activeItemIndex ) . toEqual ( chips . length - 1 ) ;
295+ // It doesn't focus the last chip
296+ expect ( manager . activeItemIndex ) . toEqual ( - 1 ) ;
297297 } ) ;
298298
299299 it ( 'should focus the last chip when press BACKSPACE' , ( ) => {
@@ -786,7 +786,7 @@ describe('MatChipList', () => {
786786
787787 describe ( 'when the input has focus' , ( ) => {
788788
789- it ( 'should focus the last chip when press DELETE' , ( ) => {
789+ it ( 'should not focus the last chip when press DELETE' , ( ) => {
790790 let nativeInput = fixture . nativeElement . querySelector ( 'input' ) ;
791791 let DELETE_EVENT : KeyboardEvent =
792792 createKeyboardEvent ( 'keydown' , DELETE , nativeInput ) ;
@@ -799,8 +799,8 @@ describe('MatChipList', () => {
799799 chipListInstance . _keydown ( DELETE_EVENT ) ;
800800 fixture . detectChanges ( ) ;
801801
802- // It focuses the last chip
803- expect ( manager . activeItemIndex ) . toEqual ( chips . length - 1 ) ;
802+ // It doesn't focus the last chip
803+ expect ( manager . activeItemIndex ) . toEqual ( - 1 ) ;
804804 } ) ;
805805
806806 it ( 'should focus the last chip when press BACKSPACE' , ( ) => {
0 commit comments