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

Function grabElementsForTesting

src/cdk/menu/menu.spec.ts:141–155  ·  view source on GitHub ↗

Get the test elements from the component.

()

Source from the content-addressed store, hash-verified

139
140 /** Get the test elements from the component. */
141 function grabElementsForTesting() {
142 nativeFileTrigger = fixture.componentInstance.nativeFileTrigger?.nativeElement;
143 nativeFileButtons = fixture.debugElement
144 .query(By.css('#file_menu'))
145 ?.nativeElement.querySelectorAll('button');
146
147 nativeEditTrigger = fixture.componentInstance.nativeEditTrigger?.nativeElement;
148 nativeEditButtons = fixture.debugElement
149 .query(By.css('#edit_menu'))
150 ?.nativeElement.querySelectorAll('button');
151
152 nativeShareTrigger = fixture.componentInstance.nativeShareTrigger?.nativeElement;
153
154 nativeMenus = fixture.componentInstance.menus.map(m => m.nativeElement);
155 }
156
157 /** Run change detection and extract the set of rendered elements. */
158 function detectChanges() {

Callers 1

detectChangesFunction · 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…