blob: a0ef9ca77b5173d022151c19bd9ac693cc7c144f [file] [log] [blame]
This is a testharness.js-based test.
PASS addTransceiver - Calling removeTrack when connection is closed should throw InvalidStateError
PASS addTrack - Calling removeTrack when connection is closed should throw InvalidStateError
PASS addTransceiver - Calling removeTrack on different connection that is closed should throw InvalidStateError
PASS addTrack - Calling removeTrack on different connection that is closed should throw InvalidStateError
PASS addTransceiver - Calling removeTrack on different connection should throw InvalidAccessError
PASS addTrack - Calling removeTrack on different connection should throw InvalidAccessError
PASS addTransceiver - Calling removeTrack with valid sender should set sender.track to null
PASS addTrack - Calling removeTrack with valid sender should set sender.track to null
PASS Calling removeTrack with currentDirection sendrecv should set direction to recvonly
PASS Calling removeTrack with currentDirection sendonly should set direction to inactive
PASS Calling removeTrack with currentDirection recvonly should not change direction
PASS Calling removeTrack with currentDirection inactive should not change direction
FAIL Calling removeTrack on a stopped transceiver should be a no-op promise_test: Unhandled rejection with value: object "TypeError: pc.getTransceivers(...)[0].stop is not a function"
Harness: the test ran to completion.