OLD | NEW |
1 CONSOLE WARNING: 'KeyboardEvent.keyLocation' is deprecated and will be removed i
n M50, around April 2016. Please use 'KeyboardEvent.location' instead. See https
://www.chromestatus.com/features/4997403308457984 for more details. | |
2 This tests the constructor for the KeyboardEvent DOM class. | 1 This tests the constructor for the KeyboardEvent DOM class. |
3 | 2 |
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
5 | 4 |
6 | 5 |
7 PASS new KeyboardEvent('eventType').bubbles is false | 6 PASS new KeyboardEvent('eventType').bubbles is false |
8 PASS new KeyboardEvent('eventType').cancelable is false | 7 PASS new KeyboardEvent('eventType').cancelable is false |
9 PASS new KeyboardEvent('eventType').view is null | 8 PASS new KeyboardEvent('eventType').view is null |
10 PASS new KeyboardEvent('eventType').detail is 0 | 9 PASS new KeyboardEvent('eventType').detail is 0 |
11 PASS new KeyboardEvent('eventType').keyIdentifier is "" | 10 PASS new KeyboardEvent('eventType').keyIdentifier is "" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 PASS new KeyboardEvent('eventType', { key: 18446744073709551615 }).key is "18446
744073709552000" | 71 PASS new KeyboardEvent('eventType', { key: 18446744073709551615 }).key is "18446
744073709552000" |
73 PASS new KeyboardEvent('eventType', { key: NaN }).key is "NaN" | 72 PASS new KeyboardEvent('eventType', { key: NaN }).key is "NaN" |
74 PASS new KeyboardEvent('eventType', { key: [] }).key is "" | 73 PASS new KeyboardEvent('eventType', { key: [] }).key is "" |
75 PASS new KeyboardEvent('eventType', { key: [1, 2, 3] }).key is "1,2,3" | 74 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]" | 75 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]" | 76 PASS new KeyboardEvent('eventType', { key: {valueOf: function () { return 'koaku
ma'; } } }).key is "[object Object]" |
78 PASS new KeyboardEvent('eventType', { location: KeyboardEvent.DOM_KEY_LOCATION_S
TANDARD }).location is KeyboardEvent.DOM_KEY_LOCATION_STANDARD | 77 PASS new KeyboardEvent('eventType', { location: KeyboardEvent.DOM_KEY_LOCATION_S
TANDARD }).location is KeyboardEvent.DOM_KEY_LOCATION_STANDARD |
79 PASS new KeyboardEvent('eventType', { location: KeyboardEvent.DOM_KEY_LOCATION_L
EFT }).location is KeyboardEvent.DOM_KEY_LOCATION_LEFT | 78 PASS new KeyboardEvent('eventType', { location: KeyboardEvent.DOM_KEY_LOCATION_L
EFT }).location is KeyboardEvent.DOM_KEY_LOCATION_LEFT |
80 PASS new KeyboardEvent('eventType', { location: 4294967294 }).location is 429496
7294 | 79 PASS new KeyboardEvent('eventType', { location: 4294967294 }).location is 429496
7294 |
81 PASS new KeyboardEvent('eventType', { location: 4294967295 }).location is 429496
7295 | 80 PASS new KeyboardEvent('eventType', { location: 4294967295 }).location is 429496
7295 |
82 PASS new KeyboardEvent('eventType', { keyLocation: 0 }).keyLocation is 0 | |
83 PASS new KeyboardEvent('eventType', { keyLocation: 1 }).keyLocation is 1 | |
84 PASS new KeyboardEvent('eventType', { keyLocation: 1 }).location is 1 | |
85 PASS new KeyboardEvent('eventType', { location: 1 }).keyLocation is 1 | |
86 PASS new KeyboardEvent('eventType', { location: 9007199254740991 }).location is
4294967295 | 81 PASS new KeyboardEvent('eventType', { location: 9007199254740991 }).location is
4294967295 |
87 PASS new KeyboardEvent('eventType', { location: 18446744073709551615 }).location
is KeyboardEvent.DOM_KEY_LOCATION_STANDARD | 82 PASS new KeyboardEvent('eventType', { location: 18446744073709551615 }).location
is KeyboardEvent.DOM_KEY_LOCATION_STANDARD |
88 PASS new KeyboardEvent('eventType', { location: 12345678901234567890 }).location
is 3944679424 | 83 PASS new KeyboardEvent('eventType', { location: 12345678901234567890 }).location
is 3944679424 |
89 PASS new KeyboardEvent('eventType', { location: -1 }).location is 4294967295 | 84 PASS new KeyboardEvent('eventType', { location: -1 }).location is 4294967295 |
90 PASS new KeyboardEvent('eventType', { location: 123.45 }).location is 123 | 85 PASS new KeyboardEvent('eventType', { location: 123.45 }).location is 123 |
91 PASS new KeyboardEvent('eventType', { location: NaN }).location is KeyboardEvent
.DOM_KEY_LOCATION_STANDARD | 86 PASS new KeyboardEvent('eventType', { location: NaN }).location is KeyboardEvent
.DOM_KEY_LOCATION_STANDARD |
92 PASS new KeyboardEvent('eventType', { location: undefined }).location is Keyboar
dEvent.DOM_KEY_LOCATION_STANDARD | 87 PASS new KeyboardEvent('eventType', { location: undefined }).location is Keyboar
dEvent.DOM_KEY_LOCATION_STANDARD |
93 PASS new KeyboardEvent('eventType', { location: null }).location is KeyboardEven
t.DOM_KEY_LOCATION_STANDARD | 88 PASS new KeyboardEvent('eventType', { location: null }).location is KeyboardEven
t.DOM_KEY_LOCATION_STANDARD |
94 PASS new KeyboardEvent('eventType', { location: '' }).location is KeyboardEvent.
DOM_KEY_LOCATION_STANDARD | 89 PASS new KeyboardEvent('eventType', { location: '' }).location is KeyboardEvent.
DOM_KEY_LOCATION_STANDARD |
95 PASS new KeyboardEvent('eventType', { location: '12345' }).location is 12345 | 90 PASS new KeyboardEvent('eventType', { location: '12345' }).location is 12345 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 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 }).location is 222 |
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 | 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 }).ctrlKey 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 | 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 }).altKey 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 | 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 }).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 | 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 }).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 | 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 }).repeat is true |
149 PASS successfullyParsed is true | 144 PASS successfullyParsed is true |
150 | 145 |
151 TEST COMPLETE | 146 TEST COMPLETE |
152 | 147 |
OLD | NEW |