Upstream version 5.34.92.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / events / constructors / message-event-constructor-expected.txt
1 This tests the constructor for the MessageEvent DOM class.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 PASS new MessageEvent('eventType').bubbles is false
7 PASS new MessageEvent('eventType').cancelable is false
8 PASS new MessageEvent('eventType').data is null
9 PASS new MessageEvent('eventType').origin is ""
10 PASS new MessageEvent('eventType').lastEventId is ""
11 PASS new MessageEvent('eventType').source is null
12 PASS new MessageEvent('eventType').ports is []
13 PASS new MessageEvent('eventType', { bubbles: false }).bubbles is false
14 PASS new MessageEvent('eventType', { bubbles: true }).bubbles is true
15 PASS new MessageEvent('eventType', { cancelable: false }).cancelable is false
16 PASS new MessageEvent('eventType', { cancelable: true }).cancelable is true
17 PASS new MessageEvent('eventType', { data: test_object }).data is test_object
18 PASS new MessageEvent('eventType', { data: document }).data is document
19 PASS new MessageEvent('eventType', { data: undefined }).data is undefined
20 PASS new MessageEvent('eventType', { data: null }).data is null
21 PASS new MessageEvent('eventType', { data: false }).data is false
22 PASS new MessageEvent('eventType', { data: true }).data is true
23 PASS new MessageEvent('eventType', { data: '' }).data is ""
24 PASS new MessageEvent('eventType', { data: 'chocolate' }).data is "chocolate"
25 PASS new MessageEvent('eventType', { data: 12345 }).data is 12345
26 PASS new MessageEvent('eventType', { data: 18446744073709551615 }).data is 18446744073709552000
27 PASS new MessageEvent('eventType', { data: NaN }).data is NaN
28 PASS new MessageEvent('eventType', { data: {valueOf: function () { return test_object; } } }).data == test_object is false
29 PASS new MessageEvent('eventType', { get data() { return 123; } }).data is 123
30 PASS new MessageEvent('eventType', { get data() { throw 'MessageEvent Error'; } }) threw exception MessageEvent Error.
31 PASS new MessageEvent('eventType', { origin: 'melancholy' }).origin is "melancholy"
32 PASS new MessageEvent('eventType', { origin: '' }).origin is ""
33 PASS new MessageEvent('eventType', { origin: undefined }).origin is "undefined"
34 PASS new MessageEvent('eventType', { origin: null }).origin is "null"
35 PASS new MessageEvent('eventType', { origin: false }).origin is "false"
36 PASS new MessageEvent('eventType', { origin: true }).origin is "true"
37 PASS new MessageEvent('eventType', { origin: 12345 }).origin is "12345"
38 PASS new MessageEvent('eventType', { origin: 18446744073709551615 }).origin is "18446744073709552000"
39 PASS new MessageEvent('eventType', { origin: NaN }).origin is "NaN"
40 PASS new MessageEvent('eventType', { origin: [] }).origin is ""
41 PASS new MessageEvent('eventType', { origin: [1, 2, 3] }).origin is "1,2,3"
42 PASS new MessageEvent('eventType', { origin: {melancholy: 12345} }).origin is "[object Object]"
43 PASS new MessageEvent('eventType', { origin: {valueOf: function () { return 'melancholy'; } } }).origin is "[object Object]"
44 PASS new MessageEvent('eventType', { get origin() { return 123; } }).origin is "123"
45 PASS new MessageEvent('eventType', { get origin() { throw 'MessageEvent Error'; } }) threw exception MessageEvent Error.
46 PASS new MessageEvent('eventType', { lastEventId: 'melancholy' }).lastEventId is "melancholy"
47 PASS new MessageEvent('eventType', { lastEventId: '' }).lastEventId is ""
48 PASS new MessageEvent('eventType', { lastEventId: undefined }).lastEventId is "undefined"
49 PASS new MessageEvent('eventType', { lastEventId: null }).lastEventId is "null"
50 PASS new MessageEvent('eventType', { lastEventId: false }).lastEventId is "false"
51 PASS new MessageEvent('eventType', { lastEventId: true }).lastEventId is "true"
52 PASS new MessageEvent('eventType', { lastEventId: 12345 }).lastEventId is "12345"
53 PASS new MessageEvent('eventType', { lastEventId: 18446744073709551615 }).lastEventId is "18446744073709552000"
54 PASS new MessageEvent('eventType', { lastEventId: NaN }).lastEventId is "NaN"
55 PASS new MessageEvent('eventType', { lastEventId: [] }).lastEventId is ""
56 PASS new MessageEvent('eventType', { lastEventId: [1, 2, 3] }).lastEventId is "1,2,3"
57 PASS new MessageEvent('eventType', { lastEventId: {melancholy: 12345} }).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; } }).lastEventId is "123"
60 PASS new MessageEvent('eventType', { get lastEventId() { throw 'MessageEvent Error'; } }) threw exception MessageEvent Error.
61 PASS new MessageEvent('eventType', { source: window }).source is window
62 PASS new MessageEvent('eventType', { source: this }).source is this
63 PASS new MessageEvent('eventType', { ports: [channel.port1], source: channel.port1 }).source is channel.port1
64 PASS new MessageEvent('eventType', { source: test_object }).source threw exception TypeError: Failed to construct 'MessageEvent': The 'source' property does not have a EventTarget type..
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 threw exception TypeError: Failed to construct 'MessageEvent': The optional 'source' property is neither a Window nor MessagePort..
67 PASS new MessageEvent('eventType', { source: undefined }).source is null
68 PASS new MessageEvent('eventType', { source: null }).source is null
69 PASS new MessageEvent('eventType', { source: false }).source threw exception TypeError: Failed to construct 'MessageEvent': The 'source' property does not have a EventTarget type..
70 PASS new MessageEvent('eventType', { source: true }).source threw exception TypeError: Failed to construct 'MessageEvent': The 'source' property does not have a EventTarget type..
71 PASS new MessageEvent('eventType', { source: '' }).source threw exception TypeError: Failed to construct 'MessageEvent': The 'source' property does not have a EventTarget type..
72 PASS new MessageEvent('eventType', { source: 'chocolate' }).source threw exception TypeError: Failed to construct 'MessageEvent': The 'source' property does not have a EventTarget type..
73 PASS new MessageEvent('eventType', { source: 12345 }).source threw exception TypeError: Failed to construct 'MessageEvent': The 'source' property does not have a EventTarget type..
74 PASS new MessageEvent('eventType', { source: 18446744073709551615 }).source threw exception TypeError: Failed to construct 'MessageEvent': The 'source' property does not have a EventTarget type..
75 PASS new MessageEvent('eventType', { source: NaN }).source threw exception TypeError: Failed to construct 'MessageEvent': The 'source' property does not have a EventTarget type..
76 PASS new MessageEvent('eventType', { source: {valueOf: function () { return window; } } }).source == window threw exception TypeError: Failed to construct 'MessageEvent': The 'source' property does not have a EventTarget type..
77 PASS new MessageEvent('eventType', { get source() { return window; } }).source is window
78 PASS new MessageEvent('eventType', { get source() { return 123; } }).source threw 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.
80 PASS new MessageEvent('eventType', { ports: [channel.port1, channel.port2, channel2.port1] }).ports[0] is channel.port1
81 PASS new MessageEvent('eventType', { ports: [channel.port1, channel.port2, channel2.port1] }).ports[1] is channel.port2
82 PASS new MessageEvent('eventType', { ports: [channel.port1, channel.port2, channel2.port1] }).ports[2] is channel2.port1
83 PASS new MessageEvent('eventType', { ports: [] }).ports is []
84 PASS new MessageEvent('eventType', { ports: undefined }).ports is []
85 PASS new MessageEvent('eventType', { ports: null }).ports is []
86 PASS new MessageEvent('eventType', { ports: [1, 2, 3] }).ports[2] threw exception TypeError: 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 properties..
88 PASS new MessageEvent('eventType', { ports: document }).ports threw exception TypeError: 'ports' property is neither an array, nor does it have indexed properties..
89 PASS new MessageEvent('eventType', { ports: false }).ports threw exception TypeError: 'ports' property is neither an array, nor does it have indexed properties..
90 PASS new MessageEvent('eventType', { ports: true }).ports threw exception TypeError: 'ports' property is neither an array, nor does it have indexed properties..
91 PASS new MessageEvent('eventType', { ports: '' }).ports threw exception TypeError: '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 properties..
93 PASS new MessageEvent('eventType', { ports: 12345 }).ports threw exception TypeError: '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 indexed properties..
95 PASS new MessageEvent('eventType', { ports: NaN }).ports threw exception TypeError: 'ports' property is neither an array, nor 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 indexed properties..
97 PASS new MessageEvent('eventType', { get ports() { throw 'MessageEvent Error'; } }) threw exception MessageEvent Error.
98 PASS new MessageEvent('eventType', { ports: {valueOf: function () { return [channel.port1, channel.port2, channel.port2]; } } }).ports[0] threw exception TypeError: 'ports' property is neither an array, nor 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
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
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"
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
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
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
110
111 TEST COMPLETE
112