(type: any, opts: any)
| 67 | } |
| 68 | |
| 69 | export function createPointerEvent(type: any, opts: any) { |
| 70 | const evt = new Event(type, { bubbles: true, cancelable: true }); |
| 71 | Object.assign( |
| 72 | evt, |
| 73 | { |
| 74 | ctrlKey: false, |
| 75 | metaKey: false, |
| 76 | shiftKey: false, |
| 77 | altKey: false, |
| 78 | button: opts.button || 0, |
| 79 | width: 1, |
| 80 | height: 1, |
| 81 | }, |
| 82 | opts, |
| 83 | ); |
| 84 | return evt; |
| 85 | } |
no outgoing calls
no test coverage detected