Summary

Harness status: OK

Found 12 tests

Details

ResultTest NameMessage
PassaddTransceiver() with string argument as invalid kind should throw TypeError
Asserts run
Pass
assert_idl_attribute(object "[object RTCPeerConnection]", "addTransceiver")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:82:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => pc.addTransceiver('invalid')")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:83:5)
PassaddTransceiver('audio') should return an audio transceiver
Asserts run
Pass
assert_idl_attribute(object "[object RTCPeerConnection]", "addTransceiver")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:129:5)
Pass
assert_true(true, "Expect transceiver to be instance of RTCRtpTransceiver")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:132:5)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:135:5)
Pass
assert_equals(false, false)
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:136:5)
Pass
assert_equals("sendrecv", "sendrecv")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:137:5)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:138:5)
Pass
assert_array_equals([object "[object RTCRtpTransceiver]"], [object "[object RTCRtpTransceiver]"], "Expect added transceiver to be the only element in connection's list of transceivers")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:140:5)
Pass
assert_true(true, "Expect sender to be instance of RTCRtpSender")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:145:5)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:148:5)
Pass
assert_array_equals([object "[object RTCRtpSender]"], [object "[object RTCRtpSender]"], "Expect added sender to be the only element in connection's list of senders")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:150:5)
Pass
assert_true(true, "Expect receiver to be instance of RTCRtpReceiver")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:154:5)
Pass
assert_true(true, "Expect receiver.track to be instance of MediaStreamTrack")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:158:5)
Pass
assert_equals("audio", "audio")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:161:5)
Pass
assert_equals("live", "live")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:162:5)
Pass
assert_equals(true, true)
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:163:5)
Pass
assert_array_equals([object "[object RTCRtpReceiver]"], [object "[object RTCRtpReceiver]"], "Expect added receiver to be the only element in connection's list of receivers")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:165:5)
PassaddTransceiver('video') should return a video transceiver
Asserts run
Pass
assert_idl_attribute(object "[object RTCPeerConnection]", "addTransceiver")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:174:5)
Pass
assert_true(true, "Expect transceiver to be instance of RTCRtpTransceiver")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:177:5)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:180:5)
Pass
assert_equals(false, false)
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:181:5)
Pass
assert_equals("sendrecv", "sendrecv")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:182:5)
Pass
assert_array_equals([object "[object RTCRtpTransceiver]"], [object "[object RTCRtpTransceiver]"], "Expect added transceiver to be the only element in connection's list of transceivers")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:184:5)
Pass
assert_true(true, "Expect sender to be instance of RTCRtpSender")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:189:5)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:192:5)
Pass
assert_array_equals([object "[object RTCRtpSender]"], [object "[object RTCRtpSender]"], "Expect added sender to be the only element in connection's list of senders")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:194:5)
Pass
assert_true(true, "Expect receiver to be instance of RTCRtpReceiver")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:198:5)
Pass
assert_true(true, "Expect receiver.track to be instance of MediaStreamTrack")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:202:5)
Pass
assert_equals("video", "video")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:205:5)
Pass
assert_equals("live", "live")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:206:5)
Pass
assert_equals(true, true)
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:207:5)
Pass
assert_array_equals([object "[object RTCRtpReceiver]"], [object "[object RTCRtpReceiver]"], "Expect added receiver to be the only element in connection's list of receivers")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:209:5)
PassaddTransceiver() with direction sendonly should have result transceiver.direction be the same
Asserts run
Pass
assert_equals("sendonly", "sendonly")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:219:5)
PassaddTransceiver() with direction inactive should have result transceiver.direction be the same
Asserts run
Pass
assert_equals("inactive", "inactive")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:227:5)
PassaddTransceiver() with invalid direction should throw TypeError
Asserts run
Pass
assert_idl_attribute(object "[object RTCPeerConnection]", "addTransceiver")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:234:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() =>       pc.addTransceiver('audio', { direction: 'invalid' })")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:235:5)
PassaddTransceiver(track) should have result with sender.track be given track
Asserts run
Pass
assert_true(true, "Expect sender to be instance of RTCRtpSender")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:254:5)
Pass
assert_true(true, "Expect receiver to be instance of RTCRtpReceiver")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:257:5)
Pass
assert_equals(object "[object MediaStreamTrack]", object "[object MediaStreamTrack]", "Expect sender.track should be the track that is added")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:260:5)
Pass
assert_true(true, "Expect receiver.track to be instance of MediaStreamTrack")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:264:5)
Pass
assert_equals("audio", "audio", "receiver.track should have the same kind as added track's kind")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:267:5)
Pass
assert_equals("live", "live")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:270:5)
Pass
assert_equals(true, true)
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:271:5)
Pass
assert_array_equals([object "[object RTCRtpTransceiver]"], [object "[object RTCRtpTransceiver]"], "Expect added transceiver to be the only element in connection's list of transceivers")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:273:5)
Pass
assert_array_equals([object "[object RTCRtpSender]"], [object "[object RTCRtpSender]"], "Expect added sender to be the only element in connection's list of senders")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:276:5)
Pass
assert_array_equals([object "[object RTCRtpReceiver]"], [object "[object RTCRtpReceiver]"], "Expect added receiver to be the only element in connection's list of receivers")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:279:5)
PassaddTransceiver(track) multiple times should create multiple transceivers
Asserts run
Pass
assert_not_equals(object "[object RTCRtpTransceiver]", object "[object RTCRtpTransceiver]")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:294:5)
Pass
assert_not_equals(object "[object RTCRtpSender]", object "[object RTCRtpSender]")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:299:5)
Pass
assert_equals(object "[object MediaStreamTrack]", object "[object MediaStreamTrack]")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:300:5)
Pass
assert_equals(object "[object MediaStreamTrack]", object "[object MediaStreamTrack]")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:301:5)
Pass
assert_equals(2, 2)
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:304:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:305:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:306:5)
Pass
assert_equals(2, 2)
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:309:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:310:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:311:5)
PassaddTransceiver() with rid containing invalid non-alphanumeric characters should throw TypeError
Asserts run
Pass
assert_idl_attribute(object "[object RTCPeerConnection]", "addTransceiver")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:325:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() =>       pc.addTransceiver('video', {         sendEncodings: [{           rid: '@Invalid!'         }]       })")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:327:5)
PassaddTransceiver() with rid longer than 16 characters should throw TypeError
Asserts run
Pass
assert_idl_attribute(object "[object RTCPeerConnection]", "addTransceiver")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:338:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() =>       pc.addTransceiver('audio', {         sendEncodings: [{           rid: 'a'.repeat(17)         }]       })")
    at Test.<anonymous> ( /webrtc/RTCPeerConnection-addTransceiver.https.html:340:5)
PassaddTransceiver() with valid rid value should succeed
Asserts runNo asserts ran
PassaddTransceiver() with valid sendEncodings should succeed
Asserts runNo asserts ran