@@ -52,21 +52,6 @@ describe('MatSelectionList without forms', () => {
5252 selectionList = fixture . debugElement . query ( By . directive ( MatSelectionList ) ) ;
5353 } ) ) ;
5454
55- it ( 'should add and remove focus class on focus/blur' , ( ) => {
56- // Use the second list item, because the first one is always disabled.
57- const listItem = listOptions [ 1 ] . nativeElement ;
58-
59- expect ( listItem . classList ) . not . toContain ( 'mat-list-item-focus' ) ;
60-
61- dispatchFakeEvent ( listItem , 'focus' ) ;
62- fixture . detectChanges ( ) ;
63- expect ( listItem . className ) . toContain ( 'mat-list-item-focus' ) ;
64-
65- dispatchFakeEvent ( listItem , 'blur' ) ;
66- fixture . detectChanges ( ) ;
67- expect ( listItem . className ) . not . toContain ( 'mat-list-item-focus' ) ;
68- } ) ;
69-
7055 it ( 'should be able to set a value on a list option' , ( ) => {
7156 const optionValues = [ 'inbox' , 'starred' , 'sent-mail' , 'drafts' ] ;
7257
@@ -519,45 +504,6 @@ describe('MatSelectionList without forms', () => {
519504 } ) ;
520505 } ) ;
521506
522- describe ( 'with single option' , ( ) => {
523- let fixture : ComponentFixture < SelectionListWithOnlyOneOption > ;
524- let listOption : DebugElement ;
525- let listItemEl : DebugElement ;
526-
527- beforeEach ( async ( ( ) => {
528- TestBed . configureTestingModule ( {
529- imports : [ MatListModule ] ,
530- declarations : [
531- SelectionListWithListOptions ,
532- SelectionListWithCheckboxPositionAfter ,
533- SelectionListWithListDisabled ,
534- SelectionListWithOnlyOneOption
535- ] ,
536- } ) ;
537-
538- TestBed . compileComponents ( ) ;
539- } ) ) ;
540-
541- beforeEach ( async ( ( ) => {
542- fixture = TestBed . createComponent ( SelectionListWithOnlyOneOption ) ;
543- listOption = fixture . debugElement . query ( By . directive ( MatListOption ) ) ;
544- listItemEl = fixture . debugElement . query ( By . css ( '.mat-list-item' ) ) ;
545- fixture . detectChanges ( ) ;
546- } ) ) ;
547-
548- it ( 'should be focused when focus on nativeElements' , ( ) => {
549- dispatchFakeEvent ( listOption . nativeElement , 'focus' ) ;
550- fixture . detectChanges ( ) ;
551-
552- expect ( listItemEl . nativeElement . className ) . toContain ( 'mat-list-item-focus' ) ;
553-
554- dispatchFakeEvent ( listOption . nativeElement , 'blur' ) ;
555- fixture . detectChanges ( ) ;
556-
557- expect ( listItemEl . nativeElement . className ) . not . toContain ( 'mat-list-item-focus' ) ;
558- } ) ;
559- } ) ;
560-
561507 describe ( 'with option disabled' , ( ) => {
562508 let fixture : ComponentFixture < SelectionListWithDisabledOption > ;
563509 let listOptionEl : HTMLElement ;
0 commit comments