MCPcopy Index your code
hub / github.com/angular/components / defineTestVariables

Function defineTestVariables

src/aria/listbox/listbox.spec.ts:114–120  ·  view source on GitHub ↗
(fixture: ComponentFixture<unknown>)

Source from the content-addressed store, hash-verified

112 }
113
114 function defineTestVariables(fixture: ComponentFixture<unknown>) {
115 listboxDebugElement = fixture.debugElement.query(By.directive(Listbox));
116 optionDebugElements = fixture.debugElement.queryAll(By.directive(Option));
117 listboxInstance = listboxDebugElement.injector.get<Listbox<unknown>>(Listbox);
118 listboxElement = listboxDebugElement.nativeElement;
119 optionElements = optionDebugElements.map(option => option.nativeElement);
120 }
121
122 afterEach(async () => await runAccessibilityChecks(listboxElement));
123

Callers 3

setupListboxFunction · 0.70
setupDefaultListboxFunction · 0.70
listbox.spec.tsFile · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…