mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Update web-platform-tests to revision cd2eda7fc55fd74fb66c5ae9a1fec7f39c4f06e5
This commit is contained in:
parent
bbfca28a4f
commit
cc8c86022e
3 changed files with 19 additions and 5 deletions
|
@ -570423,7 +570423,7 @@
|
|||
"manual"
|
||||
],
|
||||
"mediacapture-streams/MediaStreamTrack-getCapabilities.https.html": [
|
||||
"06662744434126b87eb1934504b53953419825cb",
|
||||
"46cb0bc6251db37a40179d7938b0e1667c9fece4",
|
||||
"testharness"
|
||||
],
|
||||
"mediacapture-streams/MediaStreamTrack-getSettings.https.html": [
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
[vh_not_refreshing_on_chrome.html]
|
||||
expected: FAIL
|
|
@ -1,8 +1,7 @@
|
|||
<!doctype html>
|
||||
<title>MediaStreamTrack GetCapabilities</title>
|
||||
<p class="instructions">This test checks for the presence of
|
||||
<code>echoCancellation</code> and <code>deviceId</code> fields
|
||||
in <code>MediaStreamTrack.getCapabilities()</code> method.</p>
|
||||
<p class="instructions">This test checks for the presence of audio and video properties in
|
||||
<code>MediaStreamTrack.getCapabilities()</code> method.</p>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
|
@ -13,5 +12,18 @@ in <code>MediaStreamTrack.getCapabilities()</code> method.</p>
|
|||
assert_true(undefined !== capabilities.deviceId, "MediaTrackCapabilities's deviceId should exist.");
|
||||
assert_true(undefined !== capabilities.echoCancellation, "MediaTrackCapabilities's echoCancellation should exist.");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
promise_test(() => {
|
||||
return navigator.mediaDevices.getUserMedia({video: true})
|
||||
.then(stream => {
|
||||
var capabilities = stream.getVideoTracks()[0].getCapabilities();
|
||||
assert_true(undefined !== capabilities.deviceId, "MediaTrackCapabilities's deviceId should exist.");
|
||||
assert_true(undefined !== capabilities.width, "MediaTrackCapabilities's width should exist.");
|
||||
assert_true(undefined !== capabilities.height, "MediaTrackCapabilities's height should exist.");
|
||||
assert_true(undefined !== capabilities.aspectRatio, "MediaTrackCapabilities's aspectRatio should exist.");
|
||||
assert_true(undefined !== capabilities.frameRate, "MediaTrackCapabilities's frameRate should exist.");
|
||||
assert_true(undefined !== capabilities.facingMode, "MediaTrackCapabilities's facingMode should exist.");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue