mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update web-platform-tests to revision d3cf77a7b8c20c678b725238eaa8a72eca3787ae
This commit is contained in:
parent
880f3b8b7a
commit
efca990ffe
541 changed files with 8000 additions and 2276 deletions
|
@ -292,6 +292,20 @@
|
|||
assert_equals(transceiver.currentDirection, 'inactive');
|
||||
}, 'Calling removeTrack with currentDirection inactive should not change direction');
|
||||
|
||||
promise_test(async t => {
|
||||
const pc = new RTCPeerConnection();
|
||||
t.add_cleanup(() => pc.close());
|
||||
const stream = await navigator.mediaDevices.getUserMedia({audio: true});
|
||||
t.add_cleanup(() => stream.getTracks().forEach(track => track.stop()));
|
||||
const [track] = stream.getTracks();
|
||||
const sender = pc.addTrack(track, stream);
|
||||
|
||||
pc.getTransceivers()[0].stop();
|
||||
pc.removeTrack(sender);
|
||||
assert_equals(sender.track, track);
|
||||
}, "Calling removeTrack on a stopped transceiver should be a no-op");
|
||||
|
||||
|
||||
/*
|
||||
TODO
|
||||
5.1. removeTrack
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue