blob: 45e39aa799f82d872772691e7a1a507b1d5a15e0 [file] [log] [blame]
Test RTCPeerConnection.setRemoteDescription called with an RTCSessionDescription of type 'offer'
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
*** Create (remote) offer with audio (remoteOffer1)
*** Done, start testing with remoteOffer1
PASS pc.signalingState is 'stable'
PASS pc.remoteDescription is null
PASS pc.pendingRemoteDescription is null
PASS pc.currentRemoteDescription is null
PASS remoteOffer1 set as remote description
FAIL pc.signalingState should be have-remote-offer. Was stable.
FAIL pc.remoteDescription should be [object Object]. Was null.
FAIL pc.pendingRemoteDescription should be [object Object]. Was null.
PASS pc.currentRemoteDescription is null
PASS remoteOffer1 set as remote description (again)
FAIL pc.signalingState should be have-remote-offer. Was stable.
*** Try setting local descriptions with bad types for the current state
PASS promise pc.setRemoteDescription({type:'answer', sdp:remoteOffer1.sdp}); rejected with InvalidStateError: Remote description type 2 is incompatible with current signaling state 0
PASS promise pc.setRemoteDescription({type:'pranswer', sdp:remoteOffer1.sdp}); rejected with InvalidStateError: Remote description type 1 is incompatible with current signaling state 0
*** Create (remote) offer with video (remoteOffer2)
*** Done, start testing with remoteOffer2
FAIL pc.signalingState should be have-remote-offer. Was stable.
PASS remoteOffer2 set as remote description
FAIL pc.signalingState should be have-remote-offer. Was stable.
FAIL pc.remoteDescription should be [object Object]. Was null.
FAIL pc.pendingRemoteDescription should be [object Object]. Was null.
PASS pc.currentRemoteDescription is null
PASS successfullyParsed is true
TEST COMPLETE