source: trip-planner-front/node_modules/@angular/cdk/testing/testbed/fake-events/dispatch-events.d.ts@ 6a80231

Last change on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.6 KB
Line 
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 */
8import { ModifierKeys } from '@angular/cdk/testing';
9/**
10 * Utility to dispatch any event on a Node.
11 * @docs-private
12 */
13export 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 */
18export 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 */
24export 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 */
29export 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 */
34export 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 */
39export declare function dispatchTouchEvent(node: Node, type: string, pageX?: number, pageY?: number, clientX?: number, clientY?: number): UIEvent;
Note: See TracBrowser for help on using the repository browser.