[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | import { ModifierKeys } from '@angular/cdk/testing';
|
---|
| 9 | /**
|
---|
| 10 | * Utility to dispatch any event on a Node.
|
---|
| 11 | * @docs-private
|
---|
| 12 | */
|
---|
| 13 | export declare function dispatchEvent<T extends Event>(node: Node | Window, event: T): T;
|
---|
| 14 | /**
|
---|
| 15 | * Shorthand to dispatch a fake event on a specified node.
|
---|
| 16 | * @docs-private
|
---|
| 17 | */
|
---|
| 18 | export declare function dispatchFakeEvent(node: Node | Window, type: string, canBubble?: boolean): Event;
|
---|
| 19 | /**
|
---|
| 20 | * Shorthand to dispatch a keyboard event with a specified key code and
|
---|
| 21 | * optional modifiers.
|
---|
| 22 | * @docs-private
|
---|
| 23 | */
|
---|
| 24 | export declare function dispatchKeyboardEvent(node: Node, type: string, keyCode?: number, key?: string, modifiers?: ModifierKeys): KeyboardEvent;
|
---|
| 25 | /**
|
---|
| 26 | * Shorthand to dispatch a mouse event on the specified coordinates.
|
---|
| 27 | * @docs-private
|
---|
| 28 | */
|
---|
| 29 | export declare function dispatchMouseEvent(node: Node, type: string, clientX?: number, clientY?: number, button?: number, modifiers?: ModifierKeys): MouseEvent;
|
---|
| 30 | /**
|
---|
| 31 | * Shorthand to dispatch a pointer event on the specified coordinates.
|
---|
| 32 | * @docs-private
|
---|
| 33 | */
|
---|
| 34 | export declare function dispatchPointerEvent(node: Node, type: string, clientX?: number, clientY?: number, options?: PointerEventInit): PointerEvent;
|
---|
| 35 | /**
|
---|
| 36 | * Shorthand to dispatch a touch event on the specified coordinates.
|
---|
| 37 | * @docs-private
|
---|
| 38 | */
|
---|
| 39 | export declare function dispatchTouchEvent(node: Node, type: string, pageX?: number, pageY?: number, clientX?: number, clientY?: number): UIEvent;
|
---|