Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: LayoutTests/fast/events/constructors/media-stream-event-constructor-expected.txt

Issue 85263002: Improve handling of dictionary conversions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Have conversion methods take a context argument; elaborate error msgs further. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 This tests the constructor for the MediaStreamEvent DOM class. 1 This tests the constructor for the MediaStreamEvent 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 MediaStreamEvent('eventType').bubbles is false 6 PASS new MediaStreamEvent('eventType').bubbles is false
7 PASS new MediaStreamEvent('eventType').cancelable is false 7 PASS new MediaStreamEvent('eventType').cancelable is false
8 PASS new MediaStreamEvent('eventType').stream is null 8 PASS new MediaStreamEvent('eventType').stream is null
9 PASS new MediaStreamEvent('eventType', { bubbles: false }).bubbles is false 9 PASS new MediaStreamEvent('eventType', { bubbles: false }).bubbles is false
10 PASS new MediaStreamEvent('eventType', { bubbles: true }).bubbles is true 10 PASS new MediaStreamEvent('eventType', { bubbles: true }).bubbles is true
11 PASS new MediaStreamEvent('eventType', { cancelable: false }).cancelable is fals e 11 PASS new MediaStreamEvent('eventType', { cancelable: false }).cancelable is fals e
12 PASS new MediaStreamEvent('eventType', { cancelable: true }).cancelable is true 12 PASS new MediaStreamEvent('eventType', { cancelable: true }).cancelable is true
13 PASS new MediaStreamEvent('eventType', { stream: mediaStream }).stream is mediaS tream 13 PASS new MediaStreamEvent('eventType', { stream: mediaStream }).stream is mediaS tream
14 PASS new MediaStreamEvent('eventType', { stream: testObject }).stream is null 14 PASS new MediaStreamEvent('eventType', { stream: testObject }).stream threw exce ption TypeError: Failed to construct 'MediaStreamEvent': The 'stream' property d oes not have a MediaStream type..
15 PASS new MediaStreamEvent('eventType', { stream: document }).stream is null 15 PASS new MediaStreamEvent('eventType', { stream: document }).stream threw except ion TypeError: Failed to construct 'MediaStreamEvent': The 'stream' property doe s not have a MediaStream type..
16 PASS new MediaStreamEvent('eventType', { stream: undefined }).stream is null 16 PASS new MediaStreamEvent('eventType', { stream: undefined }).stream is null
17 PASS new MediaStreamEvent('eventType', { stream: null }).stream is null 17 PASS new MediaStreamEvent('eventType', { stream: null }).stream is null
18 PASS new MediaStreamEvent('eventType', { stream: false }).stream is null 18 PASS new MediaStreamEvent('eventType', { stream: false }).stream threw exception TypeError: Failed to construct 'MediaStreamEvent': The 'stream' property does n ot have a MediaStream type..
19 PASS new MediaStreamEvent('eventType', { stream: true }).stream is null 19 PASS new MediaStreamEvent('eventType', { stream: true }).stream threw exception TypeError: Failed to construct 'MediaStreamEvent': The 'stream' property does no t have a MediaStream type..
20 PASS new MediaStreamEvent('eventType', { stream: '' }).stream is null 20 PASS new MediaStreamEvent('eventType', { stream: '' }).stream threw exception Ty peError: Failed to construct 'MediaStreamEvent': The 'stream' property does not have a MediaStream type..
21 PASS new MediaStreamEvent('eventType', { stream: 'chocolate' }).stream is null 21 PASS new MediaStreamEvent('eventType', { stream: 'chocolate' }).stream threw exc eption TypeError: Failed to construct 'MediaStreamEvent': The 'stream' property does not have a MediaStream type..
22 PASS new MediaStreamEvent('eventType', { stream: 12345 }).stream is null 22 PASS new MediaStreamEvent('eventType', { stream: 12345 }).stream threw exception TypeError: Failed to construct 'MediaStreamEvent': The 'stream' property does n ot have a MediaStream type..
23 PASS new MediaStreamEvent('eventType', { stream: 18446744073709551615 }).stream is null 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 is null 24 PASS new MediaStreamEvent('eventType', { stream: NaN }).stream threw exception T ypeError: 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 is false 25 PASS new MediaStreamEvent('eventType', { stream: {valueOf: function () { return mediaStream; } } }).stream == mediaStream threw exception TypeError: Failed to c onstruct 'MediaStreamEvent': The 'stream' property does not have a MediaStream t ype..
26 PASS new MediaStreamEvent('eventType', { get stream() { return 123; } }).stream is null 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..
27 PASS new MediaStreamEvent('eventType', { get stream() { throw 'MediaStreamEvent Error'; } }) threw exception MediaStreamEvent Error. 28 PASS new MediaStreamEvent('eventType', { get stream() { throw 'MediaStreamEvent Error'; } }) threw exception MediaStreamEvent Error.
28 PASS new MediaStreamEvent('eventType', { bubbles: true, cancelable: true, stream : mediaStream }).bubbles is true 29 PASS new MediaStreamEvent('eventType', { bubbles: true, cancelable: true, stream : mediaStream }).bubbles is true
29 PASS new MediaStreamEvent('eventType', { bubbles: true, cancelable: true, stream : mediaStream }).cancelable is true 30 PASS new MediaStreamEvent('eventType', { bubbles: true, cancelable: true, stream : mediaStream }).cancelable is true
30 PASS new MediaStreamEvent('eventType', { bubbles: true, cancelable: true, stream : mediaStream }).stream is mediaStream 31 PASS new MediaStreamEvent('eventType', { bubbles: true, cancelable: true, stream : mediaStream }).stream is mediaStream
31 PASS successfullyParsed is true 32 PASS successfullyParsed is true
32 33
33 TEST COMPLETE 34 TEST COMPLETE
34 35
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698