1 Tests RTCSessionDescription.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS sessionDescription = new RTCSessionDescription(initializer); did not throw exception.
7 PASS sessionDescription.type is "offer"
8 PASS sessionDescription.sdp is "foobar"
9 PASS initializer = JSON.parse(JSON.stringify(sessionDescription)); did not throw exception.
10 PASS sessionDescription = new RTCSessionDescription(initializer); did not throw exception.
11 PASS sessionDescription.type is "offer"
12 PASS sessionDescription.sdp is "foobar"
13 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 construct 'RTCSessionDescription': parameter 1 ('descriptionInitDict') is not an object..
16 PASS new RTCSessionDescription('foobar'); threw exception TypeError: Failed to construct 'RTCSessionDescription': parameter 1 ('descriptionInitDict') is not an object..
17 PASS new RTCSessionDescription({type:'foobar', sdp:'x'}); threw exception TypeError: Failed to construct 'RTCSessionDescription': The provided value 'foobar' is not a valid enum value of type RTCSdpType..
18 PASS new RTCSessionDescription({type:'offer', sdp:''}); 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 exception.
21 PASS new RTCSessionDescription({type:'pranswer', sdp:'x'}); did not throw exception.
22 PASS successfullyParsed is true