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

Side by Side Diff: LayoutTests/fast/mediastream/RTCSessionDescription-expected.txt

Issue 235123002: Should throw TypeError instead of TypeMismatchError (modules) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 months 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 Tests RTCSessionDescription. 1 Tests RTCSessionDescription.
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 sessionDescription = new RTCSessionDescription(initializer); did not throw exception. 6 PASS sessionDescription = new RTCSessionDescription(initializer); did not throw exception.
7 PASS sessionDescription.type is "offer" 7 PASS sessionDescription.type is "offer"
8 PASS sessionDescription.sdp is "foobar" 8 PASS sessionDescription.sdp is "foobar"
9 PASS initializer = JSON.parse(JSON.stringify(sessionDescription)); did not throw exception. 9 PASS initializer = JSON.parse(JSON.stringify(sessionDescription)); did not throw exception.
10 PASS sessionDescription = new RTCSessionDescription(initializer); did not throw exception. 10 PASS sessionDescription = new RTCSessionDescription(initializer); did not throw exception.
11 PASS sessionDescription.type is "offer" 11 PASS sessionDescription.type is "offer"
12 PASS sessionDescription.sdp is "foobar" 12 PASS sessionDescription.sdp is "foobar"
13 PASS new RTCSessionDescription(); did not throw exception. 13 PASS new RTCSessionDescription(); did not throw exception.
14 PASS new RTCSessionDescription({}); did not throw exception. 14 PASS new RTCSessionDescription({}); did not throw exception.
15 PASS new RTCSessionDescription(5); threw exception TypeError: Failed to construc t 'RTCSessionDescription': parameter 1 ('descriptionInitDict') is not an object. . 15 PASS new RTCSessionDescription(5); threw exception TypeError: Failed to construc t 'RTCSessionDescription': parameter 1 ('descriptionInitDict') is not an object. .
16 PASS new RTCSessionDescription('foobar'); threw exception TypeError: Failed to c onstruct 'RTCSessionDescription': parameter 1 ('descriptionInitDict') is not an object.. 16 PASS new RTCSessionDescription('foobar'); threw exception TypeError: Failed to c onstruct 'RTCSessionDescription': parameter 1 ('descriptionInitDict') is not an object..
17 PASS new RTCSessionDescription({type:'foobar', sdp:'x'}); threw exception TypeMi smatchError: Failed to construct 'RTCSessionDescription': Illegal value of attri bute 'type' : foobar. 17 PASS new RTCSessionDescription({type:'foobar', sdp:'x'}); threw exception TypeEr ror: Failed to construct 'RTCSessionDescription': Illegal value of attribute 'ty pe' : foobar.
18 PASS new RTCSessionDescription({type:'offer', sdp:''}); did not throw exception. 18 PASS new RTCSessionDescription({type:'offer', sdp:''}); did not throw exception.
19 PASS new RTCSessionDescription({type:'offer', sdp:'x'}); did not throw exception . 19 PASS new RTCSessionDescription({type:'offer', sdp:'x'}); did not throw exception .
20 PASS new RTCSessionDescription({type:'answer', sdp:'x'}); did not throw exceptio n. 20 PASS new RTCSessionDescription({type:'answer', sdp:'x'}); did not throw exceptio n.
21 PASS new RTCSessionDescription({type:'pranswer', sdp:'x'}); did not throw except ion. 21 PASS new RTCSessionDescription({type:'pranswer', sdp:'x'}); did not throw except ion.
22 PASS successfullyParsed is true 22 PASS successfullyParsed is true
23 23
24 TEST COMPLETE 24 TEST COMPLETE
25 25
OLDNEW
« no previous file with comments | « LayoutTests/fast/mediastream/RTCIceCandidate-expected.txt ('k') | Source/modules/crypto/Crypto.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698