source: trip-planner-front/node_modules/@angular/cdk/esm2015/testing/test-element.js@ bdd6491

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

initial commit

  • Property mode set to 100644
File size: 11.0 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 */
8/** An enum of non-text keys that can be used with the `sendKeys` method. */
9// NOTE: This is a separate enum from `@angular/cdk/keycodes` because we don't necessarily want to
10// support every possible keyCode. We also can't rely on Protractor's `Key` because we don't want a
11// dependency on any particular testing framework here. Instead we'll just maintain this supported
12// list of keys and let individual concrete `HarnessEnvironment` classes map them to whatever key
13// representation is used in its respective testing framework.
14// tslint:disable-next-line:prefer-const-enum Seems like this causes some issues with System.js
15export var TestKey;
16(function (TestKey) {
17 TestKey[TestKey["BACKSPACE"] = 0] = "BACKSPACE";
18 TestKey[TestKey["TAB"] = 1] = "TAB";
19 TestKey[TestKey["ENTER"] = 2] = "ENTER";
20 TestKey[TestKey["SHIFT"] = 3] = "SHIFT";
21 TestKey[TestKey["CONTROL"] = 4] = "CONTROL";
22 TestKey[TestKey["ALT"] = 5] = "ALT";
23 TestKey[TestKey["ESCAPE"] = 6] = "ESCAPE";
24 TestKey[TestKey["PAGE_UP"] = 7] = "PAGE_UP";
25 TestKey[TestKey["PAGE_DOWN"] = 8] = "PAGE_DOWN";
26 TestKey[TestKey["END"] = 9] = "END";
27 TestKey[TestKey["HOME"] = 10] = "HOME";
28 TestKey[TestKey["LEFT_ARROW"] = 11] = "LEFT_ARROW";
29 TestKey[TestKey["UP_ARROW"] = 12] = "UP_ARROW";
30 TestKey[TestKey["RIGHT_ARROW"] = 13] = "RIGHT_ARROW";
31 TestKey[TestKey["DOWN_ARROW"] = 14] = "DOWN_ARROW";
32 TestKey[TestKey["INSERT"] = 15] = "INSERT";
33 TestKey[TestKey["DELETE"] = 16] = "DELETE";
34 TestKey[TestKey["F1"] = 17] = "F1";
35 TestKey[TestKey["F2"] = 18] = "F2";
36 TestKey[TestKey["F3"] = 19] = "F3";
37 TestKey[TestKey["F4"] = 20] = "F4";
38 TestKey[TestKey["F5"] = 21] = "F5";
39 TestKey[TestKey["F6"] = 22] = "F6";
40 TestKey[TestKey["F7"] = 23] = "F7";
41 TestKey[TestKey["F8"] = 24] = "F8";
42 TestKey[TestKey["F9"] = 25] = "F9";
43 TestKey[TestKey["F10"] = 26] = "F10";
44 TestKey[TestKey["F11"] = 27] = "F11";
45 TestKey[TestKey["F12"] = 28] = "F12";
46 TestKey[TestKey["META"] = 29] = "META";
47})(TestKey || (TestKey = {}));
48//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC1lbGVtZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2Nkay90ZXN0aW5nL3Rlc3QtZWxlbWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFnQkgsNEVBQTRFO0FBQzVFLGtHQUFrRztBQUNsRyxtR0FBbUc7QUFDbkcsa0dBQWtHO0FBQ2xHLGlHQUFpRztBQUNqRyw4REFBOEQ7QUFDOUQsK0ZBQStGO0FBQy9GLE1BQU0sQ0FBTixJQUFZLE9BK0JYO0FBL0JELFdBQVksT0FBTztJQUNqQiwrQ0FBUyxDQUFBO0lBQ1QsbUNBQUcsQ0FBQTtJQUNILHVDQUFLLENBQUE7SUFDTCx1Q0FBSyxDQUFBO0lBQ0wsMkNBQU8sQ0FBQTtJQUNQLG1DQUFHLENBQUE7SUFDSCx5Q0FBTSxDQUFBO0lBQ04sMkNBQU8sQ0FBQTtJQUNQLCtDQUFTLENBQUE7SUFDVCxtQ0FBRyxDQUFBO0lBQ0gsc0NBQUksQ0FBQTtJQUNKLGtEQUFVLENBQUE7SUFDViw4Q0FBUSxDQUFBO0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