author | youennf <youennf@users.noreply.github.com> |
Wed, 19 Dec 2018 11:38:43 +0000 | |
changeset 454916 | d933e877b8663038681e281d4c2dc5549d2c3a78 |
parent 454915 | c313f303498ae59a09f686d792b90e49e8b6a9ae |
child 454917 | 98fb4602eafcd498d30b8b76e6c2dcb000b647c1 |
push id | 111373 |
push user | james@hoppipolla.co.uk |
push date | Wed, 23 Jan 2019 11:17:29 +0000 |
treeherder | mozilla-inbound@2072956ca042 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | testonly |
bugs | 1514125, 14516, 192685 |
milestone | 66.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
testing/web-platform/tests/webrtc/RTCPeerConnection-setDescription-transceiver.html | file | annotate | diff | comparison | revisions |
--- a/testing/web-platform/tests/webrtc/RTCPeerConnection-setDescription-transceiver.html +++ b/testing/web-platform/tests/webrtc/RTCPeerConnection-setDescription-transceiver.html @@ -233,16 +233,37 @@ 'Expect transceiver.mid to be unset'); assert_array_equals(pc2.getTransceivers(), [], `Expect transceiver to be removed from pc2's transceiver list`); }); }); }, 'setRemoteDescription(rollback) should remove newly created transceiver from transceiver list'); + promise_test(async t => { + const pc1 = new RTCPeerConnection(); + t.add_cleanup(() => pc1.close()); + const pc2 = new RTCPeerConnection(); + t.add_cleanup(() => pc2.close()); + + pc1.addTransceiver('audio'); + const offer = await pc1.createOffer(); + await pc1.setLocalDescription(offer); + + assert_false(pc1.getTransceivers()[0].stopped, 'Transceiver is not stopped'); + + await pc2.setRemoteDescription(offer); + pc2.getTransceivers()[0].stop(); + const answer = await pc2.createAnswer(); + + await pc1.setRemoteDescription(answer); + + assert_true(pc1.getTransceivers()[0].stopped, 'Transceiver is stopped'); + }, 'setRemoteDescription should stop the transceiver if its corresponding m section is rejected'); + /* TODO - Steps for transceiver direction is added to tip of tree draft, but not yet published as editor's draft 4.3.1.6. Set the RTCSessionSessionDescription 8. If description is set as a remote description, then run the following steps for each media description in description: