mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision b'56123c260eff2131bc355b66530d6f0b18b20b2c'
This commit is contained in:
parent
ba48966934
commit
82db1c49ad
136 changed files with 1358 additions and 1444 deletions
|
@ -376,27 +376,6 @@
|
|||
hasProps(pc.getTransceivers(), []);
|
||||
};
|
||||
|
||||
const checkMsidNoTrackId = async t => {
|
||||
const pc1 = new RTCPeerConnection();
|
||||
const pc2 = new RTCPeerConnection();
|
||||
t.add_cleanup(() => pc1.close());
|
||||
t.add_cleanup(() => pc2.close());
|
||||
const stream = await getNoiseStream({audio: true});
|
||||
t.add_cleanup(() => stopTracks(stream));
|
||||
const track = stream.getAudioTracks()[0];
|
||||
pc1.addTrack(track, stream);
|
||||
const offer = await pc1.createOffer();
|
||||
await pc1.setLocalDescription(offer);
|
||||
// Remove track-id from msid
|
||||
// Fixate stream-id so that error message is consistent.
|
||||
offer.sdp = offer.sdp.replace(/(a=msid:[^ \t]+).*\r\n/g,
|
||||
"a=msid:fake-stream-id\r\n");
|
||||
await pc2.setRemoteDescription(offer);
|
||||
const answer = await pc2.createAnswer();
|
||||
await pc1.setRemoteDescription(answer);
|
||||
await pc2.setLocalDescription(answer);
|
||||
};
|
||||
|
||||
const checkNoMidOffer = async t => {
|
||||
const pc1 = new RTCPeerConnection();
|
||||
const pc2 = new RTCPeerConnection();
|
||||
|
@ -2277,7 +2256,6 @@ const tests = [
|
|||
checkAddTransceiverWithTrack,
|
||||
checkAddTransceiverWithAddTrack,
|
||||
checkAddTransceiverWithDirection,
|
||||
checkMsidNoTrackId,
|
||||
checkAddTransceiverWithSetRemoteOfferSending,
|
||||
checkAddTransceiverWithSetRemoteOfferNoSend,
|
||||
checkAddTransceiverBadKind,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue