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

Function openCopyContextMenu

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

Open up the copy context menu and run change detection.

()

Source from the content-addressed store, hash-verified

197
198 /** Open up the copy context menu and run change detection. */
199 function openCopyContextMenu() {
200 // right click triggers a context menu event
201 dispatchMouseEvent(getCopyMenuContext(), 'contextmenu');
202 fixture.detectChanges();
203 }
204
205 it('should open the cut context menu only when right clicked in its trigger context', () => {
206 openCutContextMenu();

Callers 1

Calls 2

dispatchMouseEventFunction · 0.85
getCopyMenuContextFunction · 0.85

Tested by

no test coverage detected