MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / dispatchMouseUpEvent

Function dispatchMouseUpEvent

front_end/testing/DOMHelpers.ts:152–155  ·  view source on GitHub ↗
(element: T, options: MouseEventInit = {})

Source from the content-addressed store, hash-verified

150}
151
152export function dispatchMouseUpEvent<T extends Element>(element: T, options: MouseEventInit = {}) {
153 const clickEvent = new MouseEvent('mouseup', options);
154 element.dispatchEvent(clickEvent);
155}
156
157export function dispatchBlurEvent<T extends Element>(element: T, options: FocusEventInit = {}) {
158 const focusEvent = new FocusEvent('blur', options);

Callers 1

Calls 1

dispatchEventMethod · 0.80

Tested by

no test coverage detected