| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 PASS new MessageEvent('eventType', { lastEventId: NaN }).lastEventId is "NaN" | 54 PASS new MessageEvent('eventType', { lastEventId: NaN }).lastEventId is "NaN" |
| 55 PASS new MessageEvent('eventType', { lastEventId: [] }).lastEventId is "" | 55 PASS new MessageEvent('eventType', { lastEventId: [] }).lastEventId is "" |
| 56 PASS new MessageEvent('eventType', { lastEventId: [1, 2, 3] }).lastEventId is "1
,2,3" | 56 PASS new MessageEvent('eventType', { lastEventId: [1, 2, 3] }).lastEventId is "1
,2,3" |
| 57 PASS new MessageEvent('eventType', { lastEventId: {melancholy: 12345} }).lastEve
ntId is "[object Object]" | 57 PASS new MessageEvent('eventType', { lastEventId: {melancholy: 12345} }).lastEve
ntId is "[object Object]" |
| 58 PASS new MessageEvent('eventType', { lastEventId: {valueOf: function () { return
'melancholy'; } } }).lastEventId is "[object Object]" | 58 PASS new MessageEvent('eventType', { lastEventId: {valueOf: function () { return
'melancholy'; } } }).lastEventId is "[object Object]" |
| 59 PASS new MessageEvent('eventType', { get lastEventId() { return 123; } }).lastEv
entId is "123" | 59 PASS new MessageEvent('eventType', { get lastEventId() { return 123; } }).lastEv
entId is "123" |
| 60 PASS new MessageEvent('eventType', { get lastEventId() { throw 'MessageEvent Err
or'; } }) threw exception MessageEvent Error. | 60 PASS new MessageEvent('eventType', { get lastEventId() { throw 'MessageEvent Err
or'; } }) threw exception MessageEvent Error. |
| 61 PASS new MessageEvent('eventType', { source: window }).source is window | 61 PASS new MessageEvent('eventType', { source: window }).source is window |
| 62 PASS new MessageEvent('eventType', { source: this }).source is this | 62 PASS new MessageEvent('eventType', { source: this }).source is this |
| 63 PASS new MessageEvent('eventType', { ports: [channel.port1], source: channel.por
t1 }).source is channel.port1 | 63 PASS new MessageEvent('eventType', { ports: [channel.port1], source: channel.por
t1 }).source is channel.port1 |
| 64 PASS new MessageEvent('eventType', { source: test_object }).source is null | 64 PASS new MessageEvent('eventType', { source: test_object }).source threw excepti
on TypeError: Failed to construct 'MessageEvent': The 'source' property does not
have a EventTarget type.. |
| 65 PASS new MessageEvent('eventType', { source: document }).source is null | 65 PASS new MessageEvent('eventType', { source: document }).source threw exception
TypeError: Failed to construct 'MessageEvent': The optional 'source' property is
neither a Window nor MessagePort.. |
| 66 PASS new MessageEvent('eventType', { source: document.body }).source is null | 66 PASS new MessageEvent('eventType', { source: document.body }).source threw excep
tion TypeError: Failed to construct 'MessageEvent': The optional 'source' proper
ty is neither a Window nor MessagePort.. |
| 67 PASS new MessageEvent('eventType', { source: undefined }).source is null | 67 PASS new MessageEvent('eventType', { source: undefined }).source is null |
| 68 PASS new MessageEvent('eventType', { source: null }).source is null | 68 PASS new MessageEvent('eventType', { source: null }).source is null |
| 69 PASS new MessageEvent('eventType', { source: false }).source is null | 69 PASS new MessageEvent('eventType', { source: false }).source threw exception Typ
eError: Failed to construct 'MessageEvent': The 'source' property does not have
a EventTarget type.. |
| 70 PASS new MessageEvent('eventType', { source: true }).source is null | 70 PASS new MessageEvent('eventType', { source: true }).source threw exception Type
Error: Failed to construct 'MessageEvent': The 'source' property does not have a
EventTarget type.. |
| 71 PASS new MessageEvent('eventType', { source: '' }).source is null | 71 PASS new MessageEvent('eventType', { source: '' }).source threw exception TypeEr
ror: Failed to construct 'MessageEvent': The 'source' property does not have a E
ventTarget type.. |
| 72 PASS new MessageEvent('eventType', { source: 'chocolate' }).source is null | 72 PASS new MessageEvent('eventType', { source: 'chocolate' }).source threw excepti
on TypeError: Failed to construct 'MessageEvent': The 'source' property does not
have a EventTarget type.. |
| 73 PASS new MessageEvent('eventType', { source: 12345 }).source is null | 73 PASS new MessageEvent('eventType', { source: 12345 }).source threw exception Typ
eError: Failed to construct 'MessageEvent': The 'source' property does not have
a EventTarget type.. |
| 74 PASS new MessageEvent('eventType', { source: 18446744073709551615 }).source is n
ull | 74 PASS new MessageEvent('eventType', { source: 18446744073709551615 }).source thre
w exception TypeError: Failed to construct 'MessageEvent': The 'source' property
does not have a EventTarget type.. |
| 75 PASS new MessageEvent('eventType', { source: NaN }).source is null | 75 PASS new MessageEvent('eventType', { source: NaN }).source threw exception TypeE
rror: Failed to construct 'MessageEvent': The 'source' property does not have a
EventTarget type.. |
| 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 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 123; } }).source is n
ull | 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() { throw 'MessageEvent Error';
} }) threw exception MessageEvent Error. | 79 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 | 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[1] is channel.port2 | 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[2] is channel2.port1 | 82 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 [] | 83 PASS new MessageEvent('eventType', { ports: [] }).ports is [] |
| 83 PASS new MessageEvent('eventType', { ports: undefined }).ports is [] | 84 PASS new MessageEvent('eventType', { ports: undefined }).ports is [] |
| 84 PASS new MessageEvent('eventType', { ports: null }).ports is [] | 85 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. | 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: 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: '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: '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: 'ports' property is neither an array, nor does it have indexed properti
es.. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 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] }).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" | 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] }).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 |
| 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[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 | 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[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 |
| 107 PASS successfullyParsed is true | 108 PASS successfullyParsed is true |
| 108 | 109 |
| 109 TEST COMPLETE | 110 TEST COMPLETE |
| 110 | 111 |
| OLD | NEW |