mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
Update web-platform-tests to revision 2b7dace05fc1869398ee24f84fda4c0e4c0455ae
This commit is contained in:
parent
b23125d590
commit
6c901de216
844 changed files with 19802 additions and 3093 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue