Update web-platform-tests to revision 064f51c50eab34723ef435e80188bde08f718c2c

This commit is contained in:
WPT Sync Bot 2018-11-04 20:45:21 -05:00
parent 348f5520ee
commit 3c4e5d8f18
44 changed files with 769 additions and 789 deletions

View file

@ -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 => {