OLD | NEW |
1 This tests the constructor for the MessageEvent DOM class. | 1 This tests the constructor for the MessageEvent 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 MessageEvent('eventType').bubbles is false | 6 PASS new MessageEvent('eventType').bubbles is false |
7 PASS new MessageEvent('eventType').cancelable is false | 7 PASS new MessageEvent('eventType').cancelable is false |
8 PASS new MessageEvent('eventType').data is null | 8 PASS new MessageEvent('eventType').data is null |
9 PASS new MessageEvent('eventType').origin is "" | 9 PASS new MessageEvent('eventType').origin is "" |
10 PASS new MessageEvent('eventType').lastEventId is "" | 10 PASS new MessageEvent('eventType').lastEventId is "" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 PASS new MessageEvent('eventType', { source: {valueOf: function () { return wind
ow; } } }).source == window is false | 76 PASS new MessageEvent('eventType', { source: {valueOf: function () { return wind
ow; } } }).source == window is false |
77 PASS new MessageEvent('eventType', { get source() { return 123; } }).source is n
ull | 77 PASS new MessageEvent('eventType', { get source() { return 123; } }).source is n
ull |
78 PASS new MessageEvent('eventType', { get source() { throw 'MessageEvent Error';
} }) threw exception MessageEvent Error. | 78 PASS new MessageEvent('eventType', { get source() { throw 'MessageEvent Error';
} }) threw exception MessageEvent Error. |
79 PASS new MessageEvent('eventType', { ports: [channel.port1, channel.port2, chann
el2.port1] }).ports[0] is channel.port1 | 79 PASS new MessageEvent('eventType', { ports: [channel.port1, channel.port2, chann
el2.port1] }).ports[0] is channel.port1 |
80 PASS new MessageEvent('eventType', { ports: [channel.port1, channel.port2, chann
el2.port1] }).ports[1] is channel.port2 | 80 PASS new MessageEvent('eventType', { ports: [channel.port1, channel.port2, chann
el2.port1] }).ports[1] is channel.port2 |
81 PASS new MessageEvent('eventType', { ports: [channel.port1, channel.port2, chann
el2.port1] }).ports[2] is channel2.port1 | 81 PASS new MessageEvent('eventType', { ports: [channel.port1, channel.port2, chann
el2.port1] }).ports[2] is channel2.port1 |
82 PASS new MessageEvent('eventType', { ports: [] }).ports is [] | 82 PASS new MessageEvent('eventType', { ports: [] }).ports is [] |
83 PASS new MessageEvent('eventType', { ports: undefined }).ports is [] | 83 PASS new MessageEvent('eventType', { ports: undefined }).ports is [] |
84 PASS new MessageEvent('eventType', { ports: null }).ports is [] | 84 PASS new MessageEvent('eventType', { ports: null }).ports is [] |
85 PASS new MessageEvent('eventType', { ports: [1, 2, 3] }).ports[2] threw exceptio
n TypeError: Invalid Array element type. | 85 PASS new MessageEvent('eventType', { ports: [1, 2, 3] }).ports[2] threw exceptio
n TypeError: Invalid Array element type. |
86 PASS new MessageEvent('eventType', { ports: test_object }).ports threw exception
TypeError: Type error. | 86 PASS new MessageEvent('eventType', { ports: test_object }).ports threw exception
TypeError: 'ports' property is neither an array, nor does it have indexed prope
rties.. |
87 PASS new MessageEvent('eventType', { ports: document }).ports threw exception Ty
peError: Type error. | 87 PASS new MessageEvent('eventType', { ports: document }).ports threw exception Ty
peError: 'ports' property is neither an array, nor does it have indexed properti
es.. |
88 PASS new MessageEvent('eventType', { ports: false }).ports threw exception TypeE
rror: Type error. | 88 PASS new MessageEvent('eventType', { ports: false }).ports threw exception TypeE
rror: 'ports' property is neither an array, nor does it have indexed properties.
. |
89 PASS new MessageEvent('eventType', { ports: true }).ports threw exception TypeEr
ror: Type error. | 89 PASS new MessageEvent('eventType', { ports: true }).ports threw exception TypeEr
ror: 'ports' property is neither an array, nor does it have indexed properties.. |
90 PASS new MessageEvent('eventType', { ports: '' }).ports threw exception TypeErro
r: Type error. | 90 PASS new MessageEvent('eventType', { ports: '' }).ports threw exception TypeErro
r: 'ports' property is neither an array, nor does it have indexed properties.. |
91 PASS new MessageEvent('eventType', { ports: 'chocolate' }).ports threw exception
TypeError: Type error. | 91 PASS new MessageEvent('eventType', { ports: 'chocolate' }).ports threw exception
TypeError: 'ports' property is neither an array, nor does it have indexed prope
rties.. |
92 PASS new MessageEvent('eventType', { ports: 12345 }).ports threw exception TypeE
rror: Type error. | 92 PASS new MessageEvent('eventType', { ports: 12345 }).ports threw exception TypeE
rror: 'ports' property is neither an array, nor does it have indexed properties.
. |
93 PASS new MessageEvent('eventType', { ports: 18446744073709551615 }).ports threw
exception TypeError: Type error. | 93 PASS new MessageEvent('eventType', { ports: 18446744073709551615 }).ports threw
exception TypeError: 'ports' property is neither an array, nor does it have inde
xed properties.. |
94 PASS new MessageEvent('eventType', { ports: NaN }).ports threw exception TypeErr
or: Type error. | 94 PASS new MessageEvent('eventType', { ports: NaN }).ports threw exception TypeErr
or: 'ports' property is neither an array, nor does it have indexed properties.. |
95 PASS new MessageEvent('eventType', { get ports() { return 123; } }).ports threw
exception TypeError: Type error. | 95 PASS new MessageEvent('eventType', { get ports() { return 123; } }).ports threw
exception TypeError: 'ports' property is neither an array, nor does it have inde
xed properties.. |
96 PASS new MessageEvent('eventType', { get ports() { throw 'MessageEvent Error'; }
}) threw exception MessageEvent Error. | 96 PASS new MessageEvent('eventType', { get ports() { throw 'MessageEvent Error'; }
}) threw exception MessageEvent Error. |
97 PASS new MessageEvent('eventType', { ports: {valueOf: function () { return [chan
nel.port1, channel.port2, channel.port2]; } } }).ports[0] threw exception TypeEr
ror: Type error. | 97 PASS new MessageEvent('eventType', { ports: {valueOf: function () { return [chan
nel.port1, channel.port2, channel.port2]; } } }).ports[0] threw exception TypeEr
ror: 'ports' property is neither an array, nor does it have indexed properties.. |
98 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [
channel.port1, channel.port2, channel2.port1] }).bubbles is true | 98 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [
channel.port1, channel.port2, channel2.port1] }).bubbles is true |
99 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [
channel.port1, channel.port2, channel2.port1] }).cancelable is true | 99 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [
channel.port1, channel.port2, channel2.port1] }).cancelable is true |
100 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [
channel.port1, channel.port2, channel2.port1] }).data is test_object | 100 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [
channel.port1, channel.port2, channel2.port1] }).data is test_object |
101 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [
channel.port1, channel.port2, channel2.port1] }).origin is "wonderful" | 101 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [
channel.port1, channel.port2, channel2.port1] }).origin is "wonderful" |
102 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [
channel.port1, channel.port2, channel2.port1] }).lastEventId is "excellent" | 102 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [
channel.port1, channel.port2, channel2.port1] }).lastEventId is "excellent" |
103 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [
channel.port1, channel.port2, channel2.port1] }).source is window | 103 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [
channel.port1, channel.port2, channel2.port1] }).source is window |
104 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [
channel.port1, channel.port2, channel2.port1] }).ports[0] is channel.port1 | 104 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [
channel.port1, channel.port2, channel2.port1] }).ports[0] is channel.port1 |
105 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [
channel.port1, channel.port2, channel2.port1] }).ports[1] is channel.port2 | 105 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [
channel.port1, channel.port2, channel2.port1] }).ports[1] is channel.port2 |
106 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [
channel.port1, channel.port2, channel2.port1] }).ports[2] is channel2.port1 | 106 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [
channel.port1, channel.port2, channel2.port1] }).ports[2] is channel2.port1 |
107 PASS successfullyParsed is true | 107 PASS successfullyParsed is true |
108 | 108 |
109 TEST COMPLETE | 109 TEST COMPLETE |
110 | 110 |
OLD | NEW |