OLD | NEW |
1 This tests the constructor for the UIEvent DOM class. | 1 This tests the constructor for the UIEvent 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 UIEvent('eventType').bubbles is false | 6 PASS new UIEvent('eventType').bubbles is false |
7 PASS new UIEvent('eventType').cancelable is false | 7 PASS new UIEvent('eventType').cancelable is false |
8 PASS new UIEvent('eventType').view is null | 8 PASS new UIEvent('eventType').view is null |
9 PASS new UIEvent('eventType').detail is 0 | 9 PASS new UIEvent('eventType').detail is 0 |
10 PASS new UIEvent('eventType', { bubbles: false }).bubbles is false | 10 PASS new UIEvent('eventType', { bubbles: false }).bubbles is false |
11 PASS new UIEvent('eventType', { bubbles: true }).bubbles is true | 11 PASS new UIEvent('eventType', { bubbles: true }).bubbles is true |
12 PASS new UIEvent('eventType', { cancelable: false }).cancelable is false | 12 PASS new UIEvent('eventType', { cancelable: false }).cancelable is false |
13 PASS new UIEvent('eventType', { cancelable: true }).cancelable is true | 13 PASS new UIEvent('eventType', { cancelable: true }).cancelable is true |
14 PASS new UIEvent('eventType', { view: window }).view is window | 14 PASS new UIEvent('eventType', { view: window }).view is window |
15 PASS new UIEvent('eventType', { view: this }).view is this | 15 PASS new UIEvent('eventType', { view: this }).view is this |
16 PASS new UIEvent('eventType', { view: testObject }).view is null | 16 PASS new UIEvent('eventType', { view: testObject }).view threw exception TypeErr
or: Failed to construct 'UIEvent': The 'view' property does not have a Window ty
pe.. |
17 PASS new UIEvent('eventType', { view: document }).view is null | 17 PASS new UIEvent('eventType', { view: document }).view threw exception TypeError
: Failed to construct 'UIEvent': The 'view' property does not have a Window type
.. |
18 PASS new UIEvent('eventType', { view: undefined }).view is null | 18 PASS new UIEvent('eventType', { view: undefined }).view is null |
19 PASS new UIEvent('eventType', { view: null }).view is null | 19 PASS new UIEvent('eventType', { view: null }).view is null |
20 PASS new UIEvent('eventType', { view: false }).view is null | 20 PASS new UIEvent('eventType', { view: false }).view threw exception TypeError: F
ailed to construct 'UIEvent': The 'view' property does not have a Window type.. |
21 PASS new UIEvent('eventType', { view: true }).view is null | 21 PASS new UIEvent('eventType', { view: true }).view threw exception TypeError: Fa
iled to construct 'UIEvent': The 'view' property does not have a Window type.. |
22 PASS new UIEvent('eventType', { view: '' }).view is null | 22 PASS new UIEvent('eventType', { view: '' }).view threw exception TypeError: Fail
ed to construct 'UIEvent': The 'view' property does not have a Window type.. |
23 PASS new UIEvent('eventType', { view: 'chocolate' }).view is null | 23 PASS new UIEvent('eventType', { view: 'chocolate' }).view threw exception TypeEr
ror: Failed to construct 'UIEvent': The 'view' property does not have a Window t
ype.. |
24 PASS new UIEvent('eventType', { view: 12345 }).view is null | 24 PASS new UIEvent('eventType', { view: 12345 }).view threw exception TypeError: F
ailed to construct 'UIEvent': The 'view' property does not have a Window type.. |
25 PASS new UIEvent('eventType', { view: 18446744073709551615 }).view is null | 25 PASS new UIEvent('eventType', { view: 18446744073709551615 }).view threw excepti
on TypeError: Failed to construct 'UIEvent': The 'view' property does not have a
Window type.. |
26 PASS new UIEvent('eventType', { view: NaN }).view is null | 26 PASS new UIEvent('eventType', { view: NaN }).view threw exception TypeError: Fai
led to construct 'UIEvent': The 'view' property does not have a Window type.. |
27 PASS new UIEvent('eventType', { view: {valueOf: function () { return window; } }
}).view == window is false | 27 PASS new UIEvent('eventType', { view: {valueOf: function () { return window; } }
}).view == window threw exception TypeError: Failed to construct 'UIEvent': The
'view' property does not have a Window type.. |
28 PASS new UIEvent('eventType', { get view() { return 123; } }).view is null | 28 PASS new UIEvent('eventType', { get view() { return window; } }).view is window |
| 29 PASS new UIEvent('eventType', { get view() { return 123; } }).view threw excepti
on TypeError: Failed to construct 'UIEvent': The 'view' property does not have a
Window type.. |
29 PASS new UIEvent('eventType', { get view() { throw 'UIEvent Error'; } }) threw e
xception UIEvent Error. | 30 PASS new UIEvent('eventType', { get view() { throw 'UIEvent Error'; } }) threw e
xception UIEvent Error. |
30 PASS new UIEvent('eventType', { detail: 0 }).detail is 0 | 31 PASS new UIEvent('eventType', { detail: 0 }).detail is 0 |
31 PASS new UIEvent('eventType', { detail: 2147483647 }).detail is 2147483647 | 32 PASS new UIEvent('eventType', { detail: 2147483647 }).detail is 2147483647 |
32 PASS new UIEvent('eventType', { detail: -1 }).detail is -1 | 33 PASS new UIEvent('eventType', { detail: -1 }).detail is -1 |
33 PASS new UIEvent('eventType', { detail: -2147483648 }).detail is -2147483648 | 34 PASS new UIEvent('eventType', { detail: -2147483648 }).detail is -2147483648 |
34 PASS new UIEvent('eventType', { detail: 4294967295 }).detail is -1 | 35 PASS new UIEvent('eventType', { detail: 4294967295 }).detail is -1 |
35 PASS new UIEvent('eventType', { detail: 9007199254740991 }).detail is -1 | 36 PASS new UIEvent('eventType', { detail: 9007199254740991 }).detail is -1 |
36 PASS new UIEvent('eventType', { detail: 18446744073709551615 }).detail is 0 | 37 PASS new UIEvent('eventType', { detail: 18446744073709551615 }).detail is 0 |
37 PASS new UIEvent('eventType', { detail: 123.45 }).detail is 123 | 38 PASS new UIEvent('eventType', { detail: 123.45 }).detail is 123 |
38 PASS new UIEvent('eventType', { detail: NaN }).detail is 0 | 39 PASS new UIEvent('eventType', { detail: NaN }).detail is 0 |
(...skipping 10 matching lines...) Expand all Loading... |
49 PASS new UIEvent('eventType', { detail: {moemoe: 12345} }).detail is 0 | 50 PASS new UIEvent('eventType', { detail: {moemoe: 12345} }).detail is 0 |
50 PASS new UIEvent('eventType', { detail: {valueOf: function () { return 12345; }}
}).detail is 12345 | 51 PASS new UIEvent('eventType', { detail: {valueOf: function () { return 12345; }}
}).detail is 12345 |
51 PASS new UIEvent('eventType', { bubbles: true, cancelable: true, view: window, d
etail: 123 }).bubbles is true | 52 PASS new UIEvent('eventType', { bubbles: true, cancelable: true, view: window, d
etail: 123 }).bubbles is true |
52 PASS new UIEvent('eventType', { bubbles: true, cancelable: true, view: window, d
etail: 123 }).cancelable is true | 53 PASS new UIEvent('eventType', { bubbles: true, cancelable: true, view: window, d
etail: 123 }).cancelable is true |
53 PASS new UIEvent('eventType', { bubbles: true, cancelable: true, view: window, d
etail: 123 }).view is window | 54 PASS new UIEvent('eventType', { bubbles: true, cancelable: true, view: window, d
etail: 123 }).view is window |
54 PASS new UIEvent('eventType', { bubbles: true, cancelable: true, view: window, d
etail: 123 }).detail is 123 | 55 PASS new UIEvent('eventType', { bubbles: true, cancelable: true, view: window, d
etail: 123 }).detail is 123 |
55 PASS successfullyParsed is true | 56 PASS successfullyParsed is true |
56 | 57 |
57 TEST COMPLETE | 58 TEST COMPLETE |
58 | 59 |
OLD | NEW |