OLD | NEW |
1 CONSOLE WARNING: 'KeyboardEvent.keyLocation' is deprecated. Please use 'Keyboard
Event.location' instead. | 1 CONSOLE WARNING: 'KeyboardEvent.keyLocation' is deprecated. Please use 'Keyboard
Event.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 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 PASS new KeyboardEvent('eventType', { keyIdentifier: null }).keyIdentifier is "n
ull" | 42 PASS new KeyboardEvent('eventType', { keyIdentifier: null }).keyIdentifier is "n
ull" |
43 PASS new KeyboardEvent('eventType', { keyIdentifier: false }).keyIdentifier is "
false" | 43 PASS new KeyboardEvent('eventType', { keyIdentifier: false }).keyIdentifier is "
false" |
44 PASS new KeyboardEvent('eventType', { keyIdentifier: true }).keyIdentifier is "t
rue" | 44 PASS new KeyboardEvent('eventType', { keyIdentifier: true }).keyIdentifier is "t
rue" |
45 PASS new KeyboardEvent('eventType', { keyIdentifier: 12345 }).keyIdentifier is "
12345" | 45 PASS new KeyboardEvent('eventType', { keyIdentifier: 12345 }).keyIdentifier is "
12345" |
46 PASS new KeyboardEvent('eventType', { keyIdentifier: 18446744073709551615 }).key
Identifier is "18446744073709552000" | 46 PASS new KeyboardEvent('eventType', { keyIdentifier: 18446744073709551615 }).key
Identifier is "18446744073709552000" |
47 PASS new KeyboardEvent('eventType', { keyIdentifier: NaN }).keyIdentifier is "Na
N" | 47 PASS new KeyboardEvent('eventType', { keyIdentifier: NaN }).keyIdentifier is "Na
N" |
48 PASS new KeyboardEvent('eventType', { keyIdentifier: [] }).keyIdentifier is "" | 48 PASS new KeyboardEvent('eventType', { keyIdentifier: [] }).keyIdentifier is "" |
49 PASS new KeyboardEvent('eventType', { keyIdentifier: [1, 2, 3] }).keyIdentifier
is "1,2,3" | 49 PASS new KeyboardEvent('eventType', { keyIdentifier: [1, 2, 3] }).keyIdentifier
is "1,2,3" |
50 PASS new KeyboardEvent('eventType', { keyIdentifier: {koakuma: 12345} }).keyIden
tifier is "[object Object]" | 50 PASS new KeyboardEvent('eventType', { keyIdentifier: {koakuma: 12345} }).keyIden
tifier is "[object Object]" |
51 PASS new KeyboardEvent('eventType', { keyIdentifier: {valueOf: function () { ret
urn 'koakuma'; } } }).keyIdentifier is "[object Object]" | 51 PASS new KeyboardEvent('eventType', { keyIdentifier: {valueOf: function () { ret
urn 'koakuma'; } } }).keyIdentifier is "[object Object]" |
| 52 PASS new KeyboardEvent('eventType', { code: 'koakuma' }).code is "koakuma" |
| 53 PASS new KeyboardEvent('eventType', { code: '' }).code is "" |
| 54 PASS new KeyboardEvent('eventType', { code: undefined }).code is "" |
| 55 PASS new KeyboardEvent('eventType', { code: null }).code is "null" |
| 56 PASS new KeyboardEvent('eventType', { code: false }).code is "false" |
| 57 PASS new KeyboardEvent('eventType', { code: true }).code is "true" |
| 58 PASS new KeyboardEvent('eventType', { code: 12345 }).code is "12345" |
| 59 PASS new KeyboardEvent('eventType', { code: 18446744073709551615 }).code is "184
46744073709552000" |
| 60 PASS new KeyboardEvent('eventType', { code: NaN }).code is "NaN" |
| 61 PASS new KeyboardEvent('eventType', { code: [] }).code is "" |
| 62 PASS new KeyboardEvent('eventType', { code: [1, 2, 3] }).code is "1,2,3" |
| 63 PASS new KeyboardEvent('eventType', { code: {koakuma: 12345} }).code is "[object
Object]" |
| 64 PASS new KeyboardEvent('eventType', { code: {valueOf: function () { return 'koak
uma'; } } }).code is "[object Object]" |
| 65 PASS new KeyboardEvent('eventType', { key: 'koakuma' }).key is "koakuma" |
| 66 PASS new KeyboardEvent('eventType', { key: '' }).key is "" |
| 67 PASS new KeyboardEvent('eventType', { key: undefined }).key is "" |
| 68 PASS new KeyboardEvent('eventType', { key: null }).key is "null" |
| 69 PASS new KeyboardEvent('eventType', { key: false }).key is "false" |
| 70 PASS new KeyboardEvent('eventType', { key: true }).key is "true" |
| 71 PASS new KeyboardEvent('eventType', { key: 12345 }).key is "12345" |
| 72 PASS new KeyboardEvent('eventType', { key: 18446744073709551615 }).key is "18446
744073709552000" |
| 73 PASS new KeyboardEvent('eventType', { key: NaN }).key is "NaN" |
| 74 PASS new KeyboardEvent('eventType', { key: [] }).key is "" |
| 75 PASS new KeyboardEvent('eventType', { key: [1, 2, 3] }).key is "1,2,3" |
| 76 PASS new KeyboardEvent('eventType', { key: {koakuma: 12345} }).key is "[object O
bject]" |
| 77 PASS new KeyboardEvent('eventType', { key: {valueOf: function () { return 'koaku
ma'; } } }).key is "[object Object]" |
52 PASS new KeyboardEvent('eventType', { location: KeyboardEvent.DOM_KEY_LOCATION_S
TANDARD }).location is KeyboardEvent.DOM_KEY_LOCATION_STANDARD | 78 PASS new KeyboardEvent('eventType', { location: KeyboardEvent.DOM_KEY_LOCATION_S
TANDARD }).location is KeyboardEvent.DOM_KEY_LOCATION_STANDARD |
53 PASS new KeyboardEvent('eventType', { location: KeyboardEvent.DOM_KEY_LOCATION_L
EFT }).location is KeyboardEvent.DOM_KEY_LOCATION_LEFT | 79 PASS new KeyboardEvent('eventType', { location: KeyboardEvent.DOM_KEY_LOCATION_L
EFT }).location is KeyboardEvent.DOM_KEY_LOCATION_LEFT |
54 PASS new KeyboardEvent('eventType', { location: 4294967294 }).location is 429496
7294 | 80 PASS new KeyboardEvent('eventType', { location: 4294967294 }).location is 429496
7294 |
55 PASS new KeyboardEvent('eventType', { location: 4294967295 }).location is 429496
7295 | 81 PASS new KeyboardEvent('eventType', { location: 4294967295 }).location is 429496
7295 |
56 PASS new KeyboardEvent('eventType', { keyLocation: 0 }).keyLocation is 0 | 82 PASS new KeyboardEvent('eventType', { keyLocation: 0 }).keyLocation is 0 |
57 PASS new KeyboardEvent('eventType', { keyLocation: 1 }).keyLocation is 1 | 83 PASS new KeyboardEvent('eventType', { keyLocation: 1 }).keyLocation is 1 |
58 PASS new KeyboardEvent('eventType', { keyLocation: 1 }).location is 1 | 84 PASS new KeyboardEvent('eventType', { keyLocation: 1 }).location is 1 |
59 PASS new KeyboardEvent('eventType', { location: 1 }).keyLocation is 1 | 85 PASS new KeyboardEvent('eventType', { location: 1 }).keyLocation is 1 |
60 PASS new KeyboardEvent('eventType', { location: 9007199254740991 }).location is
4294967295 | 86 PASS new KeyboardEvent('eventType', { location: 9007199254740991 }).location is
4294967295 |
61 PASS new KeyboardEvent('eventType', { location: 18446744073709551615 }).location
is KeyboardEvent.DOM_KEY_LOCATION_STANDARD | 87 PASS new KeyboardEvent('eventType', { location: 18446744073709551615 }).location
is KeyboardEvent.DOM_KEY_LOCATION_STANDARD |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 PASS new KeyboardEvent('eventType', { modifierFn: false }).getModifierState('Fn'
); is false | 126 PASS new KeyboardEvent('eventType', { modifierFn: false }).getModifierState('Fn'
); is false |
101 PASS new KeyboardEvent('eventType', { modifierFn: true }).getModifierState('Fn')
; is true | 127 PASS new KeyboardEvent('eventType', { modifierFn: true }).getModifierState('Fn')
; is true |
102 PASS new KeyboardEvent('eventType', { modifierCapsLock: false }).getModifierStat
e('CapsLock'); is false | 128 PASS new KeyboardEvent('eventType', { modifierCapsLock: false }).getModifierStat
e('CapsLock'); is false |
103 PASS new KeyboardEvent('eventType', { modifierCapsLock: true }).getModifierState
('CapsLock'); is true | 129 PASS new KeyboardEvent('eventType', { modifierCapsLock: true }).getModifierState
('CapsLock'); is true |
104 PASS new KeyboardEvent('eventType', { modifierScrollLock: false }).getModifierSt
ate('ScrollLock'); is false | 130 PASS new KeyboardEvent('eventType', { modifierScrollLock: false }).getModifierSt
ate('ScrollLock'); is false |
105 PASS new KeyboardEvent('eventType', { modifierScrollLock: true }).getModifierSta
te('ScrollLock'); is true | 131 PASS new KeyboardEvent('eventType', { modifierScrollLock: true }).getModifierSta
te('ScrollLock'); is true |
106 PASS new KeyboardEvent('eventType', { modifierNumLock: false }).getModifierState
('NumLock'); is false | 132 PASS new KeyboardEvent('eventType', { modifierNumLock: false }).getModifierState
('NumLock'); is false |
107 PASS new KeyboardEvent('eventType', { modifierNumLock: true }).getModifierState(
'NumLock'); is true | 133 PASS new KeyboardEvent('eventType', { modifierNumLock: true }).getModifierState(
'NumLock'); is true |
108 PASS new KeyboardEvent('eventType', { modifierSymbol: false }).getModifierState(
'Symbol'); is false | 134 PASS new KeyboardEvent('eventType', { modifierSymbol: false }).getModifierState(
'Symbol'); is false |
109 PASS new KeyboardEvent('eventType', { modifierSymbol: true }).getModifierState('
Symbol'); is true | 135 PASS new KeyboardEvent('eventType', { modifierSymbol: true }).getModifierState('
Symbol'); is true |
110 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 }).bubbles is true | 136 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', code: 'chocode', key: 'chokey', lo
cation: 222, ctrlKey: true, altKey: true, shiftKey: true, metaKey: true, repeat:
true }).bubbles is true |
111 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 }).cancelable is true | 137 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', code: 'chocode', key: 'chokey', lo
cation: 222, ctrlKey: true, altKey: true, shiftKey: true, metaKey: true, repeat:
true }).cancelable is true |
112 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 }).view is window | 138 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', code: 'chocode', key: 'chokey', lo
cation: 222, ctrlKey: true, altKey: true, shiftKey: true, metaKey: true, repeat:
true }).view is window |
113 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 }).detail is 111 | 139 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', code: 'chocode', key: 'chokey', lo
cation: 222, ctrlKey: true, altKey: true, shiftKey: true, metaKey: true, repeat:
true }).detail is 111 |
114 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 }).keyIdentifier is "choco
late" | 140 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', code: 'chocode', key: 'chokey', lo
cation: 222, ctrlKey: true, altKey: true, shiftKey: true, metaKey: true, repeat:
true }).keyIdentifier is "chocolate" |
115 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 | 141 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', code: 'chocode', key: 'chokey', lo
cation: 222, ctrlKey: true, altKey: true, shiftKey: true, metaKey: true, repeat:
true }).code is "chocode" |
116 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 | 142 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', code: 'chocode', key: 'chokey', lo
cation: 222, ctrlKey: true, altKey: true, shiftKey: true, metaKey: true, repeat:
true }).key is "chokey" |
117 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 | 143 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', code: 'chocode', key: 'chokey', lo
cation: 222, ctrlKey: true, altKey: true, shiftKey: true, metaKey: true, repeat:
true }).location is 222 |
118 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 | 144 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', code: 'chocode', key: 'chokey', lo
cation: 222, ctrlKey: true, altKey: true, shiftKey: true, metaKey: true, repeat:
true }).ctrlKey is true |
119 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 | 145 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', code: 'chocode', key: 'chokey', lo
cation: 222, ctrlKey: true, altKey: true, shiftKey: true, metaKey: true, repeat:
true }).altKey is true |
120 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 | 146 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', code: 'chocode', key: 'chokey', lo
cation: 222, ctrlKey: true, altKey: true, shiftKey: true, metaKey: true, repeat:
true }).shiftKey is true |
| 147 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', code: 'chocode', key: 'chokey', lo
cation: 222, ctrlKey: true, altKey: true, shiftKey: true, metaKey: true, repeat:
true }).metaKey is true |
| 148 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win
dow, detail: 111, keyIdentifier: 'chocolate', code: 'chocode', key: 'chokey', lo
cation: 222, ctrlKey: true, altKey: true, shiftKey: true, metaKey: true, repeat:
true }).repeat is true |
121 PASS successfullyParsed is true | 149 PASS successfullyParsed is true |
122 | 150 |
123 TEST COMPLETE | 151 TEST COMPLETE |
124 | 152 |
OLD | NEW |