blob: d9342de72819d7a9c517f531b1f5fd17d5a04224 [file] [log] [blame]
Test setting up media between two RTCPeerConnection instances with one single SDP dialog.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Create RTCPeerConnection A
PASS pcA.signalingState is 'stable'
PASS pcA.pendingLocalDescription is null
PASS pcA.currentLocalDescription is null
PASS pcA.pendingRemoteDescription is null
PASS pcA.currentRemoteDescription is null
Create RTCPeerConnection B
PASS pcB.signalingState is 'stable'
PASS pcB.pendingLocalDescription is null
PASS pcB.currentLocalDescription is null
PASS pcB.pendingRemoteDescription is null
PASS pcB.currentRemoteDescription is null
A: add media
A: create offer
A: got offer, set it as local description
A: local offer set
PASS pcA.signalingState is 'have-local-offer'
PASS pcA.pendingLocalDescription is an instance of RTCSessionDescription
PASS pcA.currentLocalDescription is null
A: send offer to B
A --- offer --> B
B: got offer from A, set it as remote description
B: remote offer set
PASS pcB.signalingState is 'have-remote-offer'
PASS pcB.pendingRemoteDescription is an instance of RTCSessionDescription
PASS pcB.currentRemoteDescription is null
B: add media (to include in answer)
B: create answer
B: got answer, set it as local description
B: local answer set
PASS pcB.signalingState is 'stable'
PASS pcB.pendingLocalDescription is null
PASS pcB.currentLocalDescription is an instance of RTCSessionDescription
PASS pcB.pendingRemoteDescription is null
FAIL pcB.currentRemoetDescription is not an instance of RTCSessionDescription
B: send answer to A
A <-- answer -- B
A: got answer from B, set it as remote description
A: remote answer set
PASS pcA.signalingState is 'stable'
PASS pcA.pendingLocalDescription is null
PASS pcA.currentLocalDescription is an instance of RTCSessionDescription
PASS pcA.pendingRemoteDescription is null
FAIL pcA.currentRemoetDescription is not an instance of RTCSessionDescription
PASS Offer/answer dialog completed
PASS successfullyParsed is true
TEST COMPLETE