Bug 1514125 [wpt PR 14516] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=192685, a=testonly
authoryouennf <youennf@users.noreply.github.com>
Wed, 19 Dec 2018 11:38:43 +0000
changeset 515016 d933e877b8663038681e281d4c2dc5549d2c3a78
parent 515015 c313f303498ae59a09f686d792b90e49e8b6a9ae
child 515017 98fb4602eafcd498d30b8b76e6c2dcb000b647c1
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1514125, 14516, 192685
milestone66.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
Bug 1514125 [wpt PR 14516] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=192685, a=testonly Automatic update from web-platform-tests WebKit export of https://bugs.webkit.org/show_bug.cgi?id=192685 (#14516) -- wpt-commits: 1db8f79ee94cf257617cbf470c6dcf7e0bbdcab5 wpt-pr: 14516
testing/web-platform/tests/webrtc/RTCPeerConnection-setDescription-transceiver.html
--- 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: