Update web-platform-tests to revision 2b7dace05fc1869398ee24f84fda4c0e4c0455ae

This commit is contained in:
WPT Sync Bot 2018-08-31 21:37:12 +00:00 committed by Tom Servo
parent b23125d590
commit 6c901de216
844 changed files with 19802 additions and 3093 deletions

View file

@ -37,9 +37,9 @@ This test uses the legacy callback API with no media, and thus does not require
var parsedOffer = new RTCSessionDescription({ type: 'offer',
sdp: offerSdp });
// These functions use the legacy interface extensions to RTCPeerConnection.
gSecondConnection.setRemoteDescription(parsedOffer,
gSecondConnection.setRemoteDescription(parsedOffer).then(
function() {
gSecondConnection.createAnswer(onAnswerCreated,
gSecondConnection.createAnswer().then(onAnswerCreated,
failed('createAnswer'));
},
failed('setRemoteDescription second'));
@ -56,7 +56,7 @@ This test uses the legacy callback API with no media, and thus does not require
function handleAnswer(answerSdp) {
var parsedAnswer = new RTCSessionDescription({ type: 'answer',
sdp: answerSdp });
gFirstConnection.setRemoteDescription(parsedAnswer, ignoreSuccess,
gFirstConnection.setRemoteDescription(parsedAnswer).then(ignoreSuccess,
failed('setRemoteDescription first'));
};
@ -125,8 +125,8 @@ This test uses the legacy callback API with no media, and thus does not require
// The offerToReceiveVideo is necessary and sufficient to make
// an actual connection.
gFirstConnection.createOffer(onOfferCreated, failed('createOffer'),
{offerToReceiveVideo: true});
gFirstConnection.createOffer({offerToReceiveVideo: true})
.then(onOfferCreated, failed('createOffer'));
});
</script>