OLD | NEW |
1 CONSOLE WARNING: 'KeyboardEvent.keyLocation'' is deprecated. Please use 'Keyboar
dEvent.location' instead. | 1 CONSOLE WARNING: 'KeyboardEvent.keyLocation'' is deprecated. Please use 'Keyboar
dEvent.location' instead. |
2 This tests the constructor for the KeyboardEvent DOM class. | 2 This tests the constructor for the KeyboardEvent DOM class. |
3 | 3 |
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
5 | 5 |
6 | 6 |
7 PASS new KeyboardEvent('eventType').bubbles is false | 7 PASS new KeyboardEvent('eventType').bubbles is false |
8 PASS new KeyboardEvent('eventType').cancelable is false | 8 PASS new KeyboardEvent('eventType').cancelable is false |
9 PASS new KeyboardEvent('eventType').view is null | 9 PASS new KeyboardEvent('eventType').view is null |
10 PASS new KeyboardEvent('eventType').detail is 0 | 10 PASS new KeyboardEvent('eventType').detail is 0 |
11 PASS new KeyboardEvent('eventType').keyIdentifier is "" | 11 PASS new KeyboardEvent('eventType').keyIdentifier is "" |
12 PASS new KeyboardEvent('eventType').location is 0 | 12 PASS new KeyboardEvent('eventType').location is 0 |
13 PASS new KeyboardEvent('eventType').ctrlKey is false | 13 PASS new KeyboardEvent('eventType').ctrlKey is false |
14 PASS new KeyboardEvent('eventType').altKey is false | 14 PASS new KeyboardEvent('eventType').altKey is false |
15 PASS new KeyboardEvent('eventType').shiftKey is false | 15 PASS new KeyboardEvent('eventType').shiftKey is false |
16 PASS new KeyboardEvent('eventType').metaKey is false | 16 PASS new KeyboardEvent('eventType').metaKey is false |
17 PASS new KeyboardEvent('eventType').repeat is false | 17 PASS new KeyboardEvent('eventType').repeat is false |
18 PASS new KeyboardEvent('eventType', { bubbles: false }).bubbles is false | 18 PASS new KeyboardEvent('eventType', { bubbles: false }).bubbles is false |
19 PASS new KeyboardEvent('eventType', { bubbles: true }).bubbles is true | 19 PASS new KeyboardEvent('eventType', { bubbles: true }).bubbles is true |
20 PASS new KeyboardEvent('eventType', { cancelable: false }).cancelable is false | 20 PASS new KeyboardEvent('eventType', { cancelable: false }).cancelable is false |
21 PASS new KeyboardEvent('eventType', { cancelable: true }).cancelable is true | 21 PASS new KeyboardEvent('eventType', { cancelable: true }).cancelable is true |
22 PASS new KeyboardEvent('eventType', { view: window }).view is window | 22 PASS new KeyboardEvent('eventType', { view: window }).view is window |
23 PASS new KeyboardEvent('eventType', { view: this }).view is this | 23 PASS new KeyboardEvent('eventType', { view: this }).view is this |
24 PASS new KeyboardEvent('eventType', { view: testObject }).view is null | 24 PASS new KeyboardEvent('eventType', { view: testObject }).view threw exception T
ypeError: Failed to construct 'KeyboardEvent': The 'view' property does not have
a Window type.. |
25 PASS new KeyboardEvent('eventType', { view: document }).view is null | 25 PASS new KeyboardEvent('eventType', { view: document }).view threw exception Typ
eError: Failed to construct 'KeyboardEvent': The 'view' property does not have a
Window type.. |
26 PASS new KeyboardEvent('eventType', { view: undefined }).view is null | 26 PASS new KeyboardEvent('eventType', { view: undefined }).view is null |
27 PASS new KeyboardEvent('eventType', { view: null }).view is null | 27 PASS new KeyboardEvent('eventType', { view: null }).view is null |
28 PASS new KeyboardEvent('eventType', { view: false }).view is null | 28 PASS new KeyboardEvent('eventType', { view: false }).view threw exception TypeEr
ror: Failed to construct 'KeyboardEvent': The 'view' property does not have a Wi
ndow type.. |
29 PASS new KeyboardEvent('eventType', { view: true }).view is null | 29 PASS new KeyboardEvent('eventType', { view: true }).view threw exception TypeErr
or: Failed to construct 'KeyboardEvent': The 'view' property does not have a Win
dow type.. |
30 PASS new KeyboardEvent('eventType', { view: '' }).view is null | 30 PASS new KeyboardEvent('eventType', { view: '' }).view threw exception TypeError
: Failed to construct 'KeyboardEvent': The 'view' property does not have a Windo
w type.. |
31 PASS new KeyboardEvent('eventType', { view: 'chocolate' }).view is null | 31 PASS new KeyboardEvent('eventType', { view: 'chocolate' }).view threw exception
TypeError: Failed to construct 'KeyboardEvent': The 'view' property does not hav
e a Window type.. |
32 PASS new KeyboardEvent('eventType', { view: 12345 }).view is null | 32 PASS new KeyboardEvent('eventType', { view: 12345 }).view threw exception TypeEr
ror: Failed to construct 'KeyboardEvent': The 'view' property does not have a Wi
ndow type.. |
33 PASS new KeyboardEvent('eventType', { view: 18446744073709551615 }).view is null | 33 PASS new KeyboardEvent('eventType', { view: 18446744073709551615 }).view threw e
xception TypeError: Failed to construct 'KeyboardEvent': The 'view' property doe
s not have a Window type.. |
34 PASS new KeyboardEvent('eventType', { view: NaN }).view is null | 34 PASS new KeyboardEvent('eventType', { view: NaN }).view threw exception TypeErro
r: Failed to construct 'KeyboardEvent': The 'view' property does not have a Wind
ow type.. |
35 PASS new KeyboardEvent('eventType', { view: {valueOf: function () { return windo
w; } } }).view == window is false | 35 PASS new KeyboardEvent('eventType', { view: {valueOf: function () { return windo
w; } } }).view == window threw exception TypeError: Failed to construct 'Keyboar
dEvent': The 'view' property does not have a Window type.. |
36 PASS new KeyboardEvent('eventType', { get view() { return 123; } }).view is null | 36 PASS new KeyboardEvent('eventType', { get view() { return window; } }).view is w
indow |
| 37 PASS new KeyboardEvent('eventType', { get view() { return 123; } }).view threw e
xception TypeError: Failed to construct 'KeyboardEvent': The 'view' property doe
s not have a Window type.. |
37 PASS new KeyboardEvent('eventType', { get view() { throw 'KeyboardEvent Error';
} }) threw exception KeyboardEvent Error. | 38 PASS new KeyboardEvent('eventType', { get view() { throw 'KeyboardEvent Error';
} }) threw exception KeyboardEvent Error. |
38 PASS new KeyboardEvent('eventType', { keyIdentifier: 'koakuma' }).keyIdentifier
is "koakuma" | 39 PASS new KeyboardEvent('eventType', { keyIdentifier: 'koakuma' }).keyIdentifier
is "koakuma" |
39 PASS new KeyboardEvent('eventType', { keyIdentifier: '' }).keyIdentifier is "" | 40 PASS new KeyboardEvent('eventType', { keyIdentifier: '' }).keyIdentifier is "" |
40 PASS new KeyboardEvent('eventType', { keyIdentifier: undefined }).keyIdentifier
is "undefined" | 41 PASS new KeyboardEvent('eventType', { keyIdentifier: undefined }).keyIdentifier
is "undefined" |
41 PASS new KeyboardEvent('eventType', { keyIdentifier: null }).keyIdentifier is "n
ull" | 42 PASS new KeyboardEvent('eventType', { keyIdentifier: null }).keyIdentifier is "n
ull" |
42 PASS new KeyboardEvent('eventType', { keyIdentifier: false }).keyIdentifier is "
false" | 43 PASS new KeyboardEvent('eventType', { keyIdentifier: false }).keyIdentifier is "
false" |
43 PASS new KeyboardEvent('eventType', { keyIdentifier: true }).keyIdentifier is "t
rue" | 44 PASS new KeyboardEvent('eventType', { keyIdentifier: true }).keyIdentifier is "t
rue" |
44 PASS new KeyboardEvent('eventType', { keyIdentifier: 12345 }).keyIdentifier is "
12345" | 45 PASS new KeyboardEvent('eventType', { keyIdentifier: 12345 }).keyIdentifier is "
12345" |
45 PASS new KeyboardEvent('eventType', { keyIdentifier: 18446744073709551615 }).key
Identifier is "18446744073709552000" | 46 PASS new KeyboardEvent('eventType', { keyIdentifier: 18446744073709551615 }).key
Identifier is "18446744073709552000" |
46 PASS new KeyboardEvent('eventType', { keyIdentifier: NaN }).keyIdentifier is "Na
N" | 47 PASS new KeyboardEvent('eventType', { keyIdentifier: NaN }).keyIdentifier is "Na
N" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK
ey: true, shiftKey: true, metaKey: true, repeat: true }).location is 222 | 93 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK
ey: true, shiftKey: true, metaKey: true, repeat: true }).location is 222 |
93 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK
ey: true, shiftKey: true, metaKey: true, repeat: true }).ctrlKey is true | 94 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK
ey: true, shiftKey: true, metaKey: true, repeat: true }).ctrlKey is true |
94 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK
ey: true, shiftKey: true, metaKey: true, repeat: true }).altKey is true | 95 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK
ey: true, shiftKey: true, metaKey: true, repeat: true }).altKey is true |
95 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK
ey: true, shiftKey: true, metaKey: true, repeat: true }).shiftKey is true | 96 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK
ey: true, shiftKey: true, metaKey: true, repeat: true }).shiftKey is true |
96 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK
ey: true, shiftKey: true, metaKey: true, repeat: true }).metaKey is true | 97 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK
ey: true, shiftKey: true, metaKey: true, repeat: true }).metaKey is true |
97 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK
ey: true, shiftKey: true, metaKey: true, repeat: true }).repeat is true | 98 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK
ey: true, shiftKey: true, metaKey: true, repeat: true }).repeat is true |
98 PASS successfullyParsed is true | 99 PASS successfullyParsed is true |
99 | 100 |
100 TEST COMPLETE | 101 TEST COMPLETE |
101 | 102 |
OLD | NEW |