Open up the copy context menu and run change detection.
()
| 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(); |
no test coverage detected