license import { ModifierKeys } from '@angular/cdk/testing' ; import { createFakeEvent , createKeyboardEvent , createMouseEvent , createPointerEvent , createTouchEvent , } from './event-objects' ; docs-private export function dispatchEvent < T extends Event > ( node , event ) { node . dispatchEvent ( event ) ; return event ; } docs-private export function dispatchFakeEvent ( node , type , bubbles ? ) { return dispatchEvent ( node , createFakeEvent ( type , bubbles ) ) ; } docs-private export function dispatchKeyboardEvent ( node , type , keyCode ? , key ? , modifiers ? ) { return dispatchEvent ( node , createKeyboardEvent ( type , keyCode , key , modifiers ) ) ; } docs-private export function dispatchMouseEvent ( node , type , clientX = 0 , clientY = 0 , button ? , modifiers ? ) { return dispatchEvent ( node , createMouseEvent ( type , clientX , clientY , button , modifiers ) ) ; } docs-private export function dispatchPointerEvent ( node , type , clientX = 0 , clientY = 0 , options ? ) { return dispatchEvent ( node , createPointerEvent ( type , clientX , clientY , options ) ) as PointerEvent ; } docs-private export function dispatchTouchEvent ( node , type , pageX = 0 , pageY = 0 , clientX = 0 , clientY = 0 ) { return dispatchEvent ( node , createTouchEvent ( type , pageX , pageY , clientX , clientY ) ) ; }