mirror of
https://github.com/servo/servo.git
synced 2025-08-28 16:48:22 +01:00
Update web-platform-tests to revision 064f51c50eab34723ef435e80188bde08f718c2c
This commit is contained in:
parent
348f5520ee
commit
3c4e5d8f18
44 changed files with 769 additions and 789 deletions
|
@ -11,7 +11,7 @@
|
|||
// https://w3c.github.io/webrtc-pc/archives/20170605/webrtc.html
|
||||
|
||||
// The following helper functions are called from RTCPeerConnection-helper.js:
|
||||
// generateOffer
|
||||
// generateDataChannelOffer
|
||||
// assert_session_desc_not_similar
|
||||
// assert_session_desc_similar
|
||||
|
||||
|
@ -62,7 +62,7 @@
|
|||
const states = [];
|
||||
pc.addEventListener('signalingstatechange', () => states.push(pc.signalingState));
|
||||
|
||||
return pc.createOffer({ offerToReceiveAudio: true })
|
||||
return generateAudioReceiveOnlyOffer(pc)
|
||||
.then(offer =>
|
||||
pc.setLocalDescription(offer)
|
||||
.then(() => {
|
||||
|
@ -84,7 +84,7 @@
|
|||
promise_test(t => {
|
||||
const pc = new RTCPeerConnection();
|
||||
t.add_cleanup(() => pc.close());
|
||||
return pc.createOffer({ offerToReceiveAudio: true })
|
||||
return generateAudioReceiveOnlyOffer(pc)
|
||||
.then(offer =>
|
||||
pc.setLocalDescription({ type: 'offer' })
|
||||
.then(() => {
|
||||
|
@ -109,7 +109,7 @@
|
|||
|
||||
t.add_cleanup(() => pc2.close());
|
||||
|
||||
return generateOffer({ pc, data: true })
|
||||
return generateDataChannelOffer(pc)
|
||||
.then(offer =>
|
||||
promise_rejects(t, 'InvalidModificationError',
|
||||
pc2.setLocalDescription(offer)));
|
||||
|
@ -122,9 +122,9 @@
|
|||
// with the first offer
|
||||
const pc = new RTCPeerConnection();
|
||||
t.add_cleanup(() => pc.close());
|
||||
return pc.createOffer({ offerToReceiveAudio: true })
|
||||
return generateAudioReceiveOnlyOffer(pc)
|
||||
.then(offer1 =>
|
||||
pc.createOffer({ offerToReceiveVideo: true })
|
||||
generateVideoReceiveOnlyOffer(pc)
|
||||
.then(offer2 => {
|
||||
assert_session_desc_not_similar(offer1, offer2);
|
||||
return promise_rejects(t, 'InvalidModificationError',
|
||||
|
@ -139,11 +139,11 @@
|
|||
const states = [];
|
||||
pc.addEventListener('signalingstatechange', () => states.push(pc.signalingState));
|
||||
|
||||
return pc.createOffer({ offerToReceiveAudio: true })
|
||||
return generateAudioReceiveOnlyOffer(pc)
|
||||
.then(offer1 =>
|
||||
pc.setLocalDescription(offer1)
|
||||
.then(() =>
|
||||
pc.createOffer({ offerToReceiveVideo: true })
|
||||
generateVideoReceiveOnlyOffer(pc)
|
||||
.then(offer2 =>
|
||||
pc.setLocalDescription(offer2)
|
||||
.then(offer2 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue