blob: c12b32d689761d09162a06bd3ec9a8f257052953 [file] [log] [blame]
This is a testharness.js-based test.
PASS addTransceiver() with string argument as invalid kind should throw TypeError
PASS addTransceiver('audio') should return an audio transceiver
PASS addTransceiver('video') should return a video transceiver
PASS addTransceiver() with direction sendonly should have result transceiver.direction be the same
PASS addTransceiver() with direction inactive should have result transceiver.direction be the same
PASS addTransceiver() with invalid direction should throw TypeError
PASS addTransceiver(track) should have result with sender.track be given track
PASS addTransceiver(track) multiple times should create multiple transceivers
FAIL addTransceiver() with rid containing invalid non-alphanumeric characters should throw TypeError assert_throws: function "() =>
pc.addTransceiver('audio', {
sendEncodings: [{
rid: '@Invalid!'
}]
})" did not throw
FAIL addTransceiver() with rid longer than 16 characters should throw TypeError assert_throws: function "() =>
pc.addTransceiver('audio', {
sendEncodings: [{
rid: 'a'.repeat(17)
}]
})" did not throw
PASS addTransceiver() with valid rid value should succeed
PASS addTransceiver() with valid sendEncodings should succeed
Harness: the test ran to completion.