Bug 1531122 [wpt PR 16039] - [Gecko Bug 1531122] Part 0: Remove a bug from a meta file, and test that we aren't comparing offers with answers., a=testonly
authorByron Campen [:bwc] <docfaraday@gmail.com>
Thu, 18 Apr 2019 11:56:11 +0000
changeset 529931 9a245f0c9016a7e8215b61e11a22de47fe340b2b
parent 529930 55479946bf6457716a69d3febe7ad457b91483c0
child 529932 7abb425884aa69edf08cf3ff86a8dea7b87141c9
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1531122, 16039
milestone68.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 1531122 [wpt PR 16039] - [Gecko Bug 1531122] Part 0: Remove a bug from a meta file, and test that we aren't comparing offers with answers., a=testonly Automatic update from web-platform-tests Part 0: Remove a bug from a meta file, and test that we aren't comparing offers with answers. Differential Revision: https://phabricator.services.mozilla.com/D24096 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1531122 gecko-commit: ecb3fee216580948044845803338c60e3a283ffe gecko-integration-branch: central gecko-reviewers: jib -- wpt-commits: 65f12c6cb3d58c8000400b76b9ab7f32961793e9 wpt-pr: 16039
testing/web-platform/tests/webrtc/RTCPeerConnection-setLocalDescription-answer.html
--- a/testing/web-platform/tests/webrtc/RTCPeerConnection-setLocalDescription-answer.html
+++ b/testing/web-platform/tests/webrtc/RTCPeerConnection-setLocalDescription-answer.html
@@ -181,9 +181,24 @@
     await pc2.setRemoteDescription(offer);
     const answer = await pc2.createAnswer(); // [[LastAnswer]] slot set
     await pc2.setRemoteDescription({type: "rollback"});
     await pc2.createOffer({offerToReceiveVideo: true}); // [[LastOffer]] slot set
     await pc2.setRemoteDescription(offer);
     await pc2.setLocalDescription(answer); // Should check against [[LastAnswer]], not [[LastOffer]]
   }, "Setting previously generated answer after a call to createOffer should work");
 
+  promise_test(async t => {
+    const pc1 = new RTCPeerConnection();
+    t.add_cleanup(() => pc1.close());
+    const pc2 = new RTCPeerConnection();
+    t.add_cleanup(() => pc2.close());
+
+    const offer = await pc1.createOffer({offerToReceiveAudio: true});
+    await pc2.setRemoteDescription(offer);
+    const answer = await pc2.createAnswer(); // [[LastAnswer]] slot set
+    await pc2.setRemoteDescription({type: "rollback"});
+    await pc2.createOffer({offerToReceiveVideo: true}); // [[LastOffer]] slot set
+    await pc2.setRemoteDescription(offer);
+    await pc2.setLocalDescription(answer); // Should check against [[LastAnswer]], not [[LastOffer]]
+  }, "Setting previously generated answer after a call to createOffer should work");
+
 </script>