MCPcopy
hub / github.com/angular/components / defineTestVariables

Function defineTestVariables

src/aria/tabs/tabs.spec.ts:108–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106 }
107
108 function defineTestVariables() {
109 tabListDebugElement = fixture.debugElement.query(By.directive(TabList));
110 tabDebugElements = fixture.debugElement.queryAll(By.directive(Tab));
111 tabPanelDebugElements = fixture.debugElement.queryAll(By.directive(TabPanel));
112
113 tabListElement = tabListDebugElement.nativeElement;
114 tabElements = tabDebugElements.map(debugEl => debugEl.nativeElement);
115 tabPanelElements = tabPanelDebugElements.map(debugEl => debugEl.nativeElement);
116 }
117
118 function isTabFocused(index: number): boolean {
119 if (testComponent.focusMode() === 'roving') {

Callers 5

keydownFunction · 0.70
clickFunction · 0.70
setupTestTabsFunction · 0.70
updateTabsFunction · 0.70
tabs.spec.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…