Upstream version 5.34.92.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / events / constructors / media-stream-event-constructor-expected.txt
1 This tests the constructor for the MediaStreamEvent DOM class.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 PASS new MediaStreamEvent('eventType').bubbles is false
7 PASS new MediaStreamEvent('eventType').cancelable is false
8 PASS new MediaStreamEvent('eventType').stream is null
9 PASS new MediaStreamEvent('eventType', { bubbles: false }).bubbles is false
10 PASS new MediaStreamEvent('eventType', { bubbles: true }).bubbles is true
11 PASS new MediaStreamEvent('eventType', { cancelable: false }).cancelable is false
12 PASS new MediaStreamEvent('eventType', { cancelable: true }).cancelable is true
13 PASS new MediaStreamEvent('eventType', { stream: mediaStream }).stream is mediaStream
14 PASS new MediaStreamEvent('eventType', { stream: testObject }).stream threw exception TypeError: Failed to construct 'MediaStreamEvent': The 'stream' property does not have a MediaStream type..
15 PASS new MediaStreamEvent('eventType', { stream: document }).stream threw exception TypeError: Failed to construct 'MediaStreamEvent': The 'stream' property does not have a MediaStream type..
16 PASS new MediaStreamEvent('eventType', { stream: undefined }).stream is null
17 PASS new MediaStreamEvent('eventType', { stream: null }).stream is null
18 PASS new MediaStreamEvent('eventType', { stream: false }).stream threw exception TypeError: Failed to construct 'MediaStreamEvent': The 'stream' property does not have a MediaStream type..
19 PASS new MediaStreamEvent('eventType', { stream: true }).stream threw exception TypeError: Failed to construct 'MediaStreamEvent': The 'stream' property does not have a MediaStream type..
20 PASS new MediaStreamEvent('eventType', { stream: '' }).stream threw exception TypeError: Failed to construct 'MediaStreamEvent': The 'stream' property does not have a MediaStream type..
21 PASS new MediaStreamEvent('eventType', { stream: 'chocolate' }).stream threw exception TypeError: Failed to construct 'MediaStreamEvent': The 'stream' property does not have a MediaStream type..
22 PASS new MediaStreamEvent('eventType', { stream: 12345 }).stream threw exception TypeError: Failed to construct 'MediaStreamEvent': The 'stream' property does not have a MediaStream type..
23 PASS new MediaStreamEvent('eventType', { stream: 18446744073709551615 }).stream threw exception TypeError: Failed to construct 'MediaStreamEvent': The 'stream' property does not have a MediaStream type..
24 PASS new MediaStreamEvent('eventType', { stream: NaN }).stream threw exception TypeError: Failed to construct 'MediaStreamEvent': The 'stream' property does not have a MediaStream type..
25 PASS new MediaStreamEvent('eventType', { stream: {valueOf: function () { return mediaStream; } } }).stream == mediaStream threw exception TypeError: Failed to construct 'MediaStreamEvent': The 'stream' property does not have a MediaStream type..
26 PASS new MediaStreamEvent('eventType', { get stream() { return mediaStream; } }).stream is mediaStream
27 PASS new MediaStreamEvent('eventType', { get stream() { return 123; } }).stream threw exception TypeError: Failed to construct 'MediaStreamEvent': The 'stream' property does not have a MediaStream type..
28 PASS new MediaStreamEvent('eventType', { get stream() { throw 'MediaStreamEvent Error'; } }) threw exception MediaStreamEvent Error.
29 PASS new MediaStreamEvent('eventType', { bubbles: true, cancelable: true, stream: mediaStream }).bubbles is true
30 PASS new MediaStreamEvent('eventType', { bubbles: true, cancelable: true, stream: mediaStream }).cancelable is true
31 PASS new MediaStreamEvent('eventType', { bubbles: true, cancelable: true, stream: mediaStream }).stream is mediaStream
32 PASS successfullyParsed is true
33
34 TEST COMPLETE
35