blob: 8b4a12b3e47f918bd081a1dfea81b28b57db13d6 [file] [log] [blame]
This is a testharness.js-based test.
PASS Calling replaceTrack on closed connection should reject with InvalidStateError
FAIL Calling replaceTrack with track of different kind should reject with TypeError assert_throws: function "function() { throw e }" threw object "InvalidModificationError" ("InvalidModificationError") expected object "TypeError" ("TypeError")
FAIL Calling replaceTrack on stopped sender should reject with InvalidStateError promise_test: Unhandled rejection with value: object "TypeError: transceiver.stop is not a function"
PASS Calling replaceTrack on sender with null track and not set to session description should resolve with sender.track set to given track
PASS Calling replaceTrack on sender not set to session description should resolve with sender.track set to given track
PASS Calling replaceTrack(null) on sender not set to session description should resolve with sender.track set to null
PASS Calling replaceTrack(null) on sender set to session description should resolve with sender.track set to null
PASS Calling replaceTrack on sender with stopped track and and set to session description should resolve with sender.track set to given track
PASS Calling replaceTrack on sender with similar track and and set to session description should resolve with sender.track set to new track
Harness: the test ran to completion.