MCPcopy Create free account
hub / github.com/angular/components / createComponent

Function createComponent

src/material/sidenav/drawer.spec.ts:778–787  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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', () => {

Callers 1

drawer.spec.tsFile · 0.70

Calls 1

focusMethod · 0.65

Tested by

no test coverage detected