OLD | NEW |
1 This tests the constructor for the MouseEvent DOM class. | 1 This tests the constructor for the MouseEvent DOM class. |
2 | 2 |
3 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
". |
4 | 4 |
5 | 5 |
6 PASS new MouseEvent('eventType').bubbles is false | 6 PASS new MouseEvent('eventType').bubbles is false |
7 PASS new MouseEvent('eventType').cancelable is false | 7 PASS new MouseEvent('eventType').cancelable is false |
8 PASS new MouseEvent('eventType').view is null | 8 PASS new MouseEvent('eventType').view is null |
9 PASS new MouseEvent('eventType').detail is 0 | 9 PASS new MouseEvent('eventType').detail is 0 |
10 PASS new MouseEvent('eventType').screenX is 0 | 10 PASS new MouseEvent('eventType').screenX is 0 |
11 PASS new MouseEvent('eventType').screenY is 0 | 11 PASS new MouseEvent('eventType').screenY is 0 |
12 PASS new MouseEvent('eventType').clientX is 0 | 12 PASS new MouseEvent('eventType').clientX is 0 |
13 PASS new MouseEvent('eventType').clientY is 0 | 13 PASS new MouseEvent('eventType').clientY is 0 |
14 PASS new MouseEvent('eventType').ctrlKey is false | 14 PASS new MouseEvent('eventType').ctrlKey is false |
15 PASS new MouseEvent('eventType').shiftKey is false | 15 PASS new MouseEvent('eventType').shiftKey is false |
16 PASS new MouseEvent('eventType').altKey is false | 16 PASS new MouseEvent('eventType').altKey is false |
17 PASS new MouseEvent('eventType').metaKey is false | 17 PASS new MouseEvent('eventType').metaKey is false |
18 PASS new MouseEvent('eventType').button is 0 | 18 PASS new MouseEvent('eventType').button is 0 |
| 19 PASS new MouseEvent('eventType').buttons is 0 |
19 PASS new MouseEvent('eventType').relatedTarget is null | 20 PASS new MouseEvent('eventType').relatedTarget is null |
20 PASS new MouseEvent('eventType', { bubbles: false }).bubbles is false | 21 PASS new MouseEvent('eventType', { bubbles: false }).bubbles is false |
21 PASS new MouseEvent('eventType', { bubbles: true }).bubbles is true | 22 PASS new MouseEvent('eventType', { bubbles: true }).bubbles is true |
22 PASS new MouseEvent('eventType', { cancelable: false }).cancelable is false | 23 PASS new MouseEvent('eventType', { cancelable: false }).cancelable is false |
23 PASS new MouseEvent('eventType', { cancelable: true }).cancelable is true | 24 PASS new MouseEvent('eventType', { cancelable: true }).cancelable is true |
24 PASS new MouseEvent('eventType', { view: window }).view is window | 25 PASS new MouseEvent('eventType', { view: window }).view is window |
25 PASS new MouseEvent('eventType', { view: this }).view is this | 26 PASS new MouseEvent('eventType', { view: this }).view is this |
26 PASS new MouseEvent('eventType', { view: testObject }).view threw exception Type
Error: Failed to construct 'MouseEvent': The 'view' property does not have a Win
dow type.. | 27 PASS new MouseEvent('eventType', { view: testObject }).view threw exception Type
Error: Failed to construct 'MouseEvent': The 'view' property does not have a Win
dow type.. |
27 PASS new MouseEvent('eventType', { view: document }).view threw exception TypeEr
ror: Failed to construct 'MouseEvent': The 'view' property does not have a Windo
w type.. | 28 PASS new MouseEvent('eventType', { view: document }).view threw exception TypeEr
ror: Failed to construct 'MouseEvent': The 'view' property does not have a Windo
w type.. |
28 PASS new MouseEvent('eventType', { view: undefined }).view is null | 29 PASS new MouseEvent('eventType', { view: undefined }).view is null |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 PASS new MouseEvent('eventType', { button: '' }).button is 0 | 167 PASS new MouseEvent('eventType', { button: '' }).button is 0 |
167 PASS new MouseEvent('eventType', { button: '12345' }).button is 12345 | 168 PASS new MouseEvent('eventType', { button: '12345' }).button is 12345 |
168 PASS new MouseEvent('eventType', { button: '12345a' }).button is 0 | 169 PASS new MouseEvent('eventType', { button: '12345a' }).button is 0 |
169 PASS new MouseEvent('eventType', { button: 'abc' }).button is 0 | 170 PASS new MouseEvent('eventType', { button: 'abc' }).button is 0 |
170 PASS new MouseEvent('eventType', { button: [] }).button is 0 | 171 PASS new MouseEvent('eventType', { button: [] }).button is 0 |
171 PASS new MouseEvent('eventType', { button: [12345] }).button is 12345 | 172 PASS new MouseEvent('eventType', { button: [12345] }).button is 12345 |
172 PASS new MouseEvent('eventType', { button: [12345, 67890] }).button is 0 | 173 PASS new MouseEvent('eventType', { button: [12345, 67890] }).button is 0 |
173 PASS new MouseEvent('eventType', { button: {} }).button is 0 | 174 PASS new MouseEvent('eventType', { button: {} }).button is 0 |
174 PASS new MouseEvent('eventType', { button: {moemoe: 12345} }).button is 0 | 175 PASS new MouseEvent('eventType', { button: {moemoe: 12345} }).button is 0 |
175 PASS new MouseEvent('eventType', { button: {valueOf: function () { return 12345;
}} }).button is 12345 | 176 PASS new MouseEvent('eventType', { button: {valueOf: function () { return 12345;
}} }).button is 12345 |
| 177 PASS new MouseEvent('eventType', { buttons: 0 }).buttons is 0 |
| 178 PASS new MouseEvent('eventType', { buttons: 1 }).buttons is 1 |
| 179 PASS new MouseEvent('eventType', { buttons: 65534 }).buttons is 65534 |
| 180 PASS new MouseEvent('eventType', { buttons: 65535 }).buttons is 65535 |
| 181 PASS new MouseEvent('eventType', { buttons: 9007199254740991 }).buttons is 65535 |
| 182 PASS new MouseEvent('eventType', { buttons: -1 }).buttons is 65535 |
| 183 PASS new MouseEvent('eventType', { buttons: 18446744073709551615 }).buttons is 0 |
| 184 PASS new MouseEvent('eventType', { buttons: 12345678901234567890 }).buttons is 2
048 |
| 185 PASS new MouseEvent('eventType', { buttons: 123.45 }).buttons is 123 |
| 186 PASS new MouseEvent('eventType', { buttons: NaN }).buttons is 0 |
| 187 PASS new MouseEvent('eventType', { buttons: undefined }).buttons is 0 |
| 188 PASS new MouseEvent('eventType', { buttons: null }).buttons is 0 |
| 189 PASS new MouseEvent('eventType', { buttons: '' }).buttons is 0 |
| 190 PASS new MouseEvent('eventType', { buttons: '12345' }).buttons is 12345 |
| 191 PASS new MouseEvent('eventType', { buttons: '12345a' }).buttons is 0 |
| 192 PASS new MouseEvent('eventType', { buttons: 'abc' }).buttons is 0 |
| 193 PASS new MouseEvent('eventType', { buttons: [] }).buttons is 0 |
| 194 PASS new MouseEvent('eventType', { buttons: [12345] }).buttons is 12345 |
| 195 PASS new MouseEvent('eventType', { buttons: [12345, 67890] }).buttons is 0 |
| 196 PASS new MouseEvent('eventType', { buttons: {} }).buttons is 0 |
| 197 PASS new MouseEvent('eventType', { buttons: {moemoe: 12345} }).buttons is 0 |
| 198 PASS new MouseEvent('eventType', { buttons: {valueOf: function () { return 12345
; }} }).buttons is 12345 |
176 PASS new MouseEvent('eventType', { relatedTarget: testDiv }).relatedTarget is te
stDiv | 199 PASS new MouseEvent('eventType', { relatedTarget: testDiv }).relatedTarget is te
stDiv |
177 PASS new MouseEvent('eventType', { relatedTarget: document }).relatedTarget is d
ocument | 200 PASS new MouseEvent('eventType', { relatedTarget: document }).relatedTarget is d
ocument |
178 PASS new MouseEvent('eventType', { relatedTarget: xhr }).relatedTarget is xhr | 201 PASS new MouseEvent('eventType', { relatedTarget: xhr }).relatedTarget is xhr |
179 PASS new MouseEvent('eventType', { relatedTarget: window }).relatedTarget is win
dow | 202 PASS new MouseEvent('eventType', { relatedTarget: window }).relatedTarget is win
dow |
180 PASS new MouseEvent('eventType', { relatedTarget: testObject }).relatedTarget th
rew exception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' p
roperty does not have a EventTarget type.. | 203 PASS new MouseEvent('eventType', { relatedTarget: testObject }).relatedTarget th
rew exception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' p
roperty does not have a EventTarget type.. |
181 PASS new MouseEvent('eventType', { relatedTarget: undefined }).relatedTarget is
null | 204 PASS new MouseEvent('eventType', { relatedTarget: undefined }).relatedTarget is
null |
182 PASS new MouseEvent('eventType', { relatedTarget: null }).relatedTarget is null | 205 PASS new MouseEvent('eventType', { relatedTarget: null }).relatedTarget is null |
183 PASS new MouseEvent('eventType', { relatedTarget: false }).relatedTarget threw e
xception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' proper
ty does not have a EventTarget type.. | 206 PASS new MouseEvent('eventType', { relatedTarget: false }).relatedTarget threw e
xception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' proper
ty does not have a EventTarget type.. |
184 PASS new MouseEvent('eventType', { relatedTarget: true }).relatedTarget threw ex
ception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' propert
y does not have a EventTarget type.. | 207 PASS new MouseEvent('eventType', { relatedTarget: true }).relatedTarget threw ex
ception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' propert
y does not have a EventTarget type.. |
185 PASS new MouseEvent('eventType', { relatedTarget: '' }).relatedTarget threw exce
ption TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' property
does not have a EventTarget type.. | 208 PASS new MouseEvent('eventType', { relatedTarget: '' }).relatedTarget threw exce
ption TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' property
does not have a EventTarget type.. |
186 PASS new MouseEvent('eventType', { relatedTarget: 'chocolate' }).relatedTarget t
hrew exception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget'
property does not have a EventTarget type.. | 209 PASS new MouseEvent('eventType', { relatedTarget: 'chocolate' }).relatedTarget t
hrew exception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget'
property does not have a EventTarget type.. |
187 PASS new MouseEvent('eventType', { relatedTarget: 12345 }).relatedTarget threw e
xception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' proper
ty does not have a EventTarget type.. | 210 PASS new MouseEvent('eventType', { relatedTarget: 12345 }).relatedTarget threw e
xception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' proper
ty does not have a EventTarget type.. |
188 PASS new MouseEvent('eventType', { relatedTarget: 18446744073709551615 }).relate
dTarget threw exception TypeError: Failed to construct 'MouseEvent': The 'relate
dTarget' property does not have a EventTarget type.. | 211 PASS new MouseEvent('eventType', { relatedTarget: 18446744073709551615 }).relate
dTarget threw exception TypeError: Failed to construct 'MouseEvent': The 'relate
dTarget' property does not have a EventTarget type.. |
189 PASS new MouseEvent('eventType', { relatedTarget: NaN }).relatedTarget threw exc
eption TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' property
does not have a EventTarget type.. | 212 PASS new MouseEvent('eventType', { relatedTarget: NaN }).relatedTarget threw exc
eption TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' property
does not have a EventTarget type.. |
190 PASS new MouseEvent('eventType', { relatedTarget: {valueOf: function () { return
testDiv; } } }).relatedTarget == testDiv threw exception TypeError: Failed to c
onstruct 'MouseEvent': The 'relatedTarget' property does not have a EventTarget
type.. | 213 PASS new MouseEvent('eventType', { relatedTarget: {valueOf: function () { return
testDiv; } } }).relatedTarget == testDiv threw exception TypeError: Failed to c
onstruct 'MouseEvent': The 'relatedTarget' property does not have a EventTarget
type.. |
191 PASS new MouseEvent('eventType', { get relatedTarget() { return testDiv; } }).re
latedTarget is testDiv | 214 PASS new MouseEvent('eventType', { get relatedTarget() { return testDiv; } }).re
latedTarget is testDiv |
192 PASS new MouseEvent('eventType', { get relatedTarget() { return 123; } }).relate
dTarget threw exception TypeError: Failed to construct 'MouseEvent': The 'relate
dTarget' property does not have a EventTarget type.. | 215 PASS new MouseEvent('eventType', { get relatedTarget() { return 123; } }).relate
dTarget threw exception TypeError: Failed to construct 'MouseEvent': The 'relate
dTarget' property does not have a EventTarget type.. |
193 PASS new MouseEvent('eventType', { get relatedTarget() { throw 'MouseEvent Error
'; } }) threw exception MouseEvent Error. | 216 PASS new MouseEvent('eventType', { get relatedTarget() { throw 'MouseEvent Error
'; } }) threw exception MouseEvent Error. |
194 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t
estDiv }).bubbles is true | 217 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re
latedTarget: testDiv }).bubbles is true |
195 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t
estDiv }).cancelable is true | 218 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re
latedTarget: testDiv }).cancelable is true |
196 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t
estDiv }).view is window | 219 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re
latedTarget: testDiv }).view is window |
197 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t
estDiv }).detail is 111 | 220 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re
latedTarget: testDiv }).detail is 111 |
198 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t
estDiv }).screenX is 222 | 221 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re
latedTarget: testDiv }).screenX is 222 |
199 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t
estDiv }).screenY is 333 | 222 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re
latedTarget: testDiv }).screenY is 333 |
200 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t
estDiv }).clientX is 444 | 223 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re
latedTarget: testDiv }).clientX is 444 |
201 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t
estDiv }).clientY is 555 | 224 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re
latedTarget: testDiv }).clientY is 555 |
202 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t
estDiv }).ctrlKey is true | 225 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re
latedTarget: testDiv }).ctrlKey is true |
203 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t
estDiv }).shiftKey is true | 226 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re
latedTarget: testDiv }).shiftKey is true |
204 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t
estDiv }).altKey is true | 227 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re
latedTarget: testDiv }).altKey is true |
205 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t
estDiv }).metaKey is true | 228 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re
latedTarget: testDiv }).metaKey is true |
206 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t
estDiv }).button is 666 | 229 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re
latedTarget: testDiv }).button is 666 |
207 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t
estDiv }).relatedTarget is testDiv | 230 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window
, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey:
true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re
latedTarget: testDiv }).relatedTarget is testDiv |
208 PASS successfullyParsed is true | 231 PASS successfullyParsed is true |
209 | 232 |
210 TEST COMPLETE | 233 TEST COMPLETE |
211 | 234 |
OLD | NEW |