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

Function openContextMenu

src/cdk/menu/context-menu-trigger.spec.ts:44–48  ·  view source on GitHub ↗

Open up the context menu and run change detection.

()

Source from the content-addressed store, hash-verified

42
43 /** Open up the context menu and run change detection. */
44 function openContextMenu() {
45 // right click triggers a context menu event
46 dispatchMouseEvent(getMenuTrigger(), 'contextmenu');
47 fixture.detectChanges();
48 }
49
50 it('should display context menu on right click inside of context component', () => {
51 expect(getContextMenu()).not.toBeDefined();

Callers 1

Calls 3

dispatchMouseEventFunction · 0.85
getMenuTriggerFunction · 0.85
getMenuContextFunction · 0.85

Tested by

no test coverage detected