mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision 3bfdeb8976fc51748935c8d1f1014dfba8e08dfb
This commit is contained in:
parent
fcd6beb608
commit
cb63cfd5c7
185 changed files with 3083 additions and 1074 deletions
|
@ -171,4 +171,19 @@
|
|||
pc.setLocalDescription(answer)));
|
||||
}, 'Calling setLocalDescription(answer) from have-local-offer state should reject with InvalidStateError');
|
||||
|
||||
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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue