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

Function getElementsForTesting

src/cdk/menu/menu-stack.spec.ts:22–27  ·  view source on GitHub ↗

Fetch triggers, menus and the menu stack from the test component.

()

Source from the content-addressed store, hash-verified

20
21 /** Fetch triggers, menus and the menu stack from the test component. */
22 function getElementsForTesting() {
23 fixture.detectChanges();
24 triggers = fixture.componentInstance.triggers.toArray();
25 menus = fixture.componentInstance.menus.toArray();
26 menuStack = fixture.componentInstance.menuBar.menuStack;
27 }
28
29 beforeEach(() => {
30 fixture = TestBed.createComponent(MultiMenuWithSubmenu);

Callers 2

menu-stack.spec.tsFile · 0.85
openAllMenusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…