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 threw exception TypeError: Failed to construct 'Mess
ageEvent': The 'source' property does not have a EventTarget type.. | 76 PASS new MessageEvent('eventType', { source: {valueOf: function () { return wind
ow; } } }).source == window threw exception TypeError: Failed to construct 'Mess
ageEvent': The 'source' property does not have a EventTarget type.. |
77 PASS new MessageEvent('eventType', { get source() { return window; } }).source i
s window | 77 PASS new MessageEvent('eventType', { get source() { return window; } }).source i
s window |
78 PASS new MessageEvent('eventType', { get source() { return 123; } }).source thre
w exception TypeError: Failed to construct 'MessageEvent': The 'source' property
does not have a EventTarget type.. | 78 PASS new MessageEvent('eventType', { get source() { return 123; } }).source thre
w exception TypeError: Failed to construct 'MessageEvent': The 'source' property
does not have a EventTarget type.. |
79 PASS new MessageEvent('eventType', { get source() { throw 'MessageEvent Error';
} }) threw exception MessageEvent Error. | 79 PASS new MessageEvent('eventType', { get source() { throw 'MessageEvent Error';
} }) threw exception MessageEvent Error. |
80 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[0] is channel.port1 |
81 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[1] is channel.port2 |
82 PASS new MessageEvent('eventType', { ports: [channel.port1, channel.port2, chann
el2.port1] }).ports[2] is channel2.port1 | 82 PASS new MessageEvent('eventType', { ports: [channel.port1, channel.port2, chann
el2.port1] }).ports[2] is channel2.port1 |
83 PASS new MessageEvent('eventType', { ports: [] }).ports is [] | 83 PASS new MessageEvent('eventType', { ports: [] }).ports is [] |
84 PASS new MessageEvent('eventType', { ports: undefined }).ports is [] | 84 PASS new MessageEvent('eventType', { ports: undefined }).ports is [] |
85 PASS new MessageEvent('eventType', { ports: null }).ports is [] | 85 PASS new MessageEvent('eventType', { ports: null }).ports is [] |
86 PASS new MessageEvent('eventType', { ports: [1, 2, 3] }).ports[2] threw exceptio
n TypeError: Invalid Array element type. | 86 PASS new MessageEvent('eventType', { ports: [1, 2, 3] }).ports[2] threw exceptio
n TypeError: Failed to construct 'MessageEvent': Invalid Array element type. |
87 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: test_object }).ports threw exception
TypeError: Failed to construct 'MessageEvent': 'ports' property is neither an a
rray, nor does it have indexed properties.. |
88 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: document }).ports threw exception Ty
peError: Failed to construct 'MessageEvent': 'ports' property is neither an arra
y, nor does it have indexed properties.. |
89 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: false }).ports threw exception TypeE
rror: Failed to construct 'MessageEvent': 'ports' property is neither an array,
nor does it have indexed properties.. |
90 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: true }).ports threw exception TypeEr
ror: Failed to construct 'MessageEvent': 'ports' property is neither an array, n
or does it have indexed properties.. |
91 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: '' }).ports threw exception TypeErro
r: Failed to construct 'MessageEvent': 'ports' property is neither an array, nor
does it have indexed properties.. |
92 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: 'chocolate' }).ports threw exception
TypeError: Failed to construct 'MessageEvent': 'ports' property is neither an a
rray, nor does it have indexed properties.. |
93 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: 12345 }).ports threw exception TypeE
rror: Failed to construct 'MessageEvent': 'ports' property is neither an array,
nor does it have indexed properties.. |
94 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: 18446744073709551615 }).ports threw
exception TypeError: Failed to construct 'MessageEvent': 'ports' property is nei
ther an array, nor does it have indexed properties.. |
95 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', { ports: NaN }).ports threw exception TypeErr
or: Failed to construct 'MessageEvent': 'ports' property is neither an array, no
r does it have indexed properties.. |
96 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() { return 123; } }).ports threw
exception TypeError: Failed to construct 'MessageEvent': 'ports' property is nei
ther an array, nor does it have indexed properties.. |
97 PASS new MessageEvent('eventType', { get ports() { throw 'MessageEvent Error'; }
}) threw exception MessageEvent Error. | 97 PASS new MessageEvent('eventType', { get ports() { throw 'MessageEvent Error'; }
}) threw exception MessageEvent Error. |
98 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', { ports: {valueOf: function () { return [chan
nel.port1, channel.port2, channel.port2]; } } }).ports[0] threw exception TypeEr
ror: Failed to construct 'MessageEvent': 'ports' property is neither an array, n
or does it have indexed properties.. |
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] }).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] }).bubbles 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] }).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] }).cancelable is true |
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] }).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] }).data is test_object |
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] }).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] }).origin is "wonderful" |
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] }).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] }).lastEventId is "excellent" |
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] }).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] }).source is window |
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[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[0] is channel.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[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[1] is channel.port2 |
107 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 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 |
108 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: {
length: 3, 0: channel.port1, 1: channel.port2, 2: channel2.port1} }).ports[2] is
channel2.port1 | 108 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test
_object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: {
length: 3, 0: channel.port1, 1: channel.port2, 2: channel2.port1} }).ports[2] is
channel2.port1 |
109 PASS successfullyParsed is true | 109 PASS successfullyParsed is true |
110 | 110 |
111 TEST COMPLETE | 111 TEST COMPLETE |
112 | 112 |
OLD | NEW |