mirror of
https://github.com/servo/servo.git
synced 2025-08-29 09:08:20 +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,11 +16,10 @@ correctly set into inactive state when permission is revoked.</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 the video MediaStreamTrack objects are properly ended on permission revocation", {timeout: 20000}); // longer timeout since requires user interaction
|
||||
t.step(function () {
|
||||
navigator.getUserMedia({audio: true,video: true}, t.step_func(function (stream) {
|
||||
navigator.mediaDevices.getUserMedia({audio: true,video: true}).then(t.step_func(function (stream) {
|
||||
var vidTrack = stream.getVideoTracks()[0];
|
||||
assert_equals(vidTrack.readyState, "live", "The video track object is in live state");
|
||||
var audTrack = stream.getAudioTracks()[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue