зеркало из https://github.com/mozilla/gecko-dev.git
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
This commit is contained in:
Родитель
3168d4e500
Коммит
091a0d976b
|
@ -186,4 +186,19 @@
|
|||
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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче