mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Update web-platform-tests to revision 38bd28fe2368c650cf6e57be205cf3118dbd4997
This commit is contained in:
parent
a28e15e4ea
commit
85fe63f512
165 changed files with 2144 additions and 2644 deletions
|
@ -601,7 +601,7 @@ function createPeerConnectionWithCleanup(t) {
|
|||
async function createTrackAndStreamWithCleanup(t, kind = 'audio') {
|
||||
let constraints = {};
|
||||
constraints[kind] = true;
|
||||
const stream = await navigator.mediaDevices.getUserMedia(constraints);
|
||||
const stream = await getNoiseStream(constraints);
|
||||
const [track] = stream.getTracks();
|
||||
t.add_cleanup(() => track.stop());
|
||||
return [track, stream];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue