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

Function grabElementsForTesting

src/cdk/menu/menu-trigger.spec.ts:96–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94 let nativeTriggers: HTMLButtonElement[];
95
96 const grabElementsForTesting = () => {
97 menus = fixture.componentInstance.menus.toArray();
98 nativeMenus = fixture.componentInstance.nativeMenus.map(m => m.nativeElement);
99
100 menuItems = fixture.componentInstance.menuItems.toArray();
101 triggers = fixture.componentInstance.triggers.toArray();
102 nativeTriggers = fixture.componentInstance.nativeTriggers.map(t => t.nativeElement);
103 };
104
105 /** run change detection and, extract and set the rendered elements */
106 const detectChanges = () => {

Callers 1

detectChangesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected