mirror of
https://github.com/servo/servo.git
synced 2025-09-03 11:38:22 +01:00
Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326
This commit is contained in:
parent
462c272380
commit
1f531f66ea
5377 changed files with 174916 additions and 84369 deletions
|
@ -16,16 +16,15 @@ MediaStream is allowed.</p>
|
|||
<div id='log'></div>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script src="/common/vendor-prefix.js" data-prefixed-objects='[{"ancestors":["navigator"], "name":"getUserMedia"}]'></script>
|
||||
<script>
|
||||
var t = async_test("Tests that adding a track to an inactive MediaStream is allowed", {timeout:20000});
|
||||
t.step(function () {
|
||||
var audio, video;
|
||||
|
||||
navigator.getUserMedia({audio:true}, gotAudio, function() {});
|
||||
navigator.mediaDevices.getUserMedia({audio:true}).then(gotAudio);
|
||||
function gotAudio(stream) {
|
||||
audio = stream;
|
||||
navigator.getUserMedia({video:true}, gotVideo, function() {});
|
||||
navigator.mediaDevices.getUserMedia({video:true}).then(gotVideo);
|
||||
}
|
||||
|
||||
function gotVideo(stream) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue