| 776 | }); |
| 777 | |
| 778 | function createComponent(): ComponentFixture<DrawerWithFocusableElements> { |
| 779 | const fixture = TestBed.createComponent(DrawerWithFocusableElements); |
| 780 | fixture.detectChanges(); |
| 781 | testComponent = fixture.debugElement.componentInstance; |
| 782 | drawer = fixture.debugElement.query(By.directive(MatDrawer))!.componentInstance; |
| 783 | firstFocusableElement = fixture.debugElement.query(By.css('.input1'))!.nativeElement; |
| 784 | lastFocusableElement = fixture.debugElement.query(By.css('.input2'))!.nativeElement; |
| 785 | lastFocusableElement.focus(); |
| 786 | return fixture; |
| 787 | } |
| 788 | }); |
| 789 | |
| 790 | it('should mark the drawer content as scrollable', () => { |