Bug 1514432 [wpt PR 14530] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=192706, a=testonly
authoryouennf <youennf@users.noreply.github.com>
Wed, 19 Dec 2018 12:09:17 +0000
changeset 515032 4bfef6168f182fd75312c7194bb26b7441188442
parent 515031 86ca0a729bfcfa8a0d8c0e223fd6285b682bb600
child 515033 5395db370569cbf4988ce37b4f3016d5cfbcb2b9
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
bugs1514432, 14530, 192706
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 1514432 [wpt PR 14530] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=192706, a=testonly Automatic update from web-platform-tests WebKit export of https://bugs.webkit.org/show_bug.cgi?id=192706 (#14530) -- wpt-commits: e183d8671bde035c7a0168a75119a5f80bd592cb wpt-pr: 14530
testing/web-platform/tests/webrtc/RTCPeerConnection-setDescription-transceiver.html
testing/web-platform/tests/webrtc/RTCRtpTransceiver.https.html
--- a/testing/web-platform/tests/webrtc/RTCPeerConnection-setDescription-transceiver.html
+++ b/testing/web-platform/tests/webrtc/RTCPeerConnection-setDescription-transceiver.html
@@ -252,16 +252,18 @@
 
     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');
+    assert_equals(pc1.getReceivers().length, 0, 'getReceivers does not expose a receiver of a stopped transceiver');
+    assert_equals(pc1.getSenders().length, 0, 'getSenders does not expose a sender of a stopped transceiver');
   }, '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
--- a/testing/web-platform/tests/webrtc/RTCRtpTransceiver.https.html
+++ b/testing/web-platform/tests/webrtc/RTCRtpTransceiver.https.html
@@ -1170,16 +1170,18 @@
     await pc2.setLocalDescription(answer);
     await pc1.setRemoteDescription(answer);
 
     let stoppedTransceiver = pc1.getTransceivers()[0];
     let onended = new Promise(resolve => {
       stoppedTransceiver.receiver.track.onended = resolve;
     });
     stoppedTransceiver.stop();
+    assert_equals(pc1.getReceivers().length, 0, 'getReceivers does not expose a receiver of a stopped transceiver');
+    assert_equals(pc1.getSenders().length, 0, 'getSenders does not expose a sender of a stopped transceiver');
 
     await onended;
 
     hasPropsAndUniqueMids(pc1.getTransceivers(),
       [
         {
           sender: {track: {kind: "audio"}},
           receiver: {track: {kind: "audio", readyState: "ended"}},