@@ -28,19 +28,16 @@ describe('MatExpansionPanel', () => {
2828
2929 it ( 'should expand and collapse the panel' , fakeAsync ( ( ) => {
3030 const fixture = TestBed . createComponent ( PanelWithContent ) ;
31- const contentEl = fixture . nativeElement . querySelector ( '.mat-expansion-panel-content' ) ;
3231 const headerEl = fixture . nativeElement . querySelector ( '.mat-expansion-panel-header' ) ;
3332 fixture . detectChanges ( ) ;
3433
3534 expect ( headerEl . classList ) . not . toContain ( 'mat-expanded' ) ;
36- expect ( contentEl . classList ) . not . toContain ( 'mat-expanded' ) ;
3735
3836 fixture . componentInstance . expanded = true ;
3937 fixture . detectChanges ( ) ;
4038 flush ( ) ;
4139
4240 expect ( headerEl . classList ) . toContain ( 'mat-expanded' ) ;
43- expect ( contentEl . classList ) . toContain ( 'mat-expanded' ) ;
4441 } ) ) ;
4542
4643 it ( 'should be able to render panel content lazily' , fakeAsync ( ( ) => {
@@ -267,23 +264,7 @@ describe('MatExpansionPanel', () => {
267264 expect ( fixture . componentInstance . expanded ) . toBe ( false ) ;
268265 } ) ;
269266
270- it ( 'should not set the mat-expanded class until the open animation is done' , fakeAsync ( ( ) => {
271- const fixture = TestBed . createComponent ( PanelWithContent ) ;
272- const contentEl = fixture . nativeElement . querySelector ( '.mat-expansion-panel-content' ) ;
273-
274- fixture . detectChanges ( ) ;
275- expect ( contentEl . classList ) . not . toContain ( 'mat-expanded' ,
276- 'Expected class not to be there on init' ) ;
277-
278- fixture . componentInstance . expanded = true ;
279- fixture . detectChanges ( ) ;
280- expect ( contentEl . classList ) . not . toContain ( 'mat-expanded' ,
281- 'Expected class not to be added immediately after becoming expanded' ) ;
282267
283- flush ( ) ;
284- expect ( contentEl . classList ) . toContain ( 'mat-expanded' ,
285- 'Expected class to be added after the animation has finished' ) ;
286- } ) ) ;
287268
288269 it ( 'should emit events for body expanding and collapsing animations' , fakeAsync ( ( ) => {
289270 const fixture = TestBed . createComponent ( PanelWithContent ) ;
0 commit comments