MCPcopy Create free account
hub / github.com/angular/angular / createMouseEvent

Function createMouseEvent

packages/private/testing/src/browser_utils.ts:24–28  ·  view source on GitHub ↗
(eventType: string)

Source from the content-addressed store, hash-verified

22}
23
24export function createMouseEvent(eventType: string): MouseEvent {
25 const evt: MouseEvent = getDOM().getDefaultDocument().createEvent('MouseEvent');
26 evt.initEvent(eventType, true, true);
27 return evt;
28}
29
30export function el(html: string): HTMLElement {
31 return <HTMLElement>getContent(createTemplate(html)).firstChild;

Callers 3

debug_node_spec.tsFile · 0.90

Calls 3

getDOMFunction · 0.85
initEventMethod · 0.80
getDefaultDocumentMethod · 0.45

Tested by

no test coverage detected