blob: bbb446057fc3a9fd19108fcce8e0256ef4f01bb3 [file] [log] [blame]
This is a testharness.js-based test.
PASS setLocalDescription() with valid answer should succeed
PASS setLocalDescription() with type answer and null sdp should use lastAnswer generated from createAnswer
PASS setLocalDescription() with answer not created by own createAnswer() should reject with InvalidModificationError
FAIL Calling setLocalDescription(answer) from stable state should reject with InvalidModificationError promise_rejects_dom: function "function() { throw e }" threw object "OperationError: Failed to execute 'setLocalDescription' on 'RTCPeerConnection': Failed to set local answer sdp: Called in wrong state: stable" that is not a DOMException InvalidModificationError: property "code" is equal to 0, expected 13
FAIL Calling setLocalDescription(answer) from have-local-offer state should reject with InvalidModificationError promise_rejects_dom: function "function() { throw e }" threw object "OperationError: Failed to execute 'setLocalDescription' on 'RTCPeerConnection': Failed to set local answer sdp: Called in wrong state: have-local-offer" that is not a DOMException InvalidModificationError: property "code" is equal to 0, expected 13
PASS Setting previously generated answer after a call to createOffer should work
PASS setLocalDescription(answer) should update internal state with a queued task, in the right order
Harness: the test ran to completion.