Description

This test checks for the presence of the navigator.mediaDevices.getUserMedia method.

Summary

Harness status: OK

Found 6 tests

Details

ResultTest NameMessage
PassmediaDevices.getUserMedia() is present on navigator
Asserts run
Pass
assert_not_equals(function "function getUserMedia() { [native code] }", undefined, "navigator.mediaDevices.getUserMedia exists.")
    at Test.<anonymous> ( /mediacapture-streams/MediaDevices-getUserMedia.https.html:21:3)
Pass
assert_not_equals(function "function getSupportedConstraints() { [native code] }", undefined, "navigator.mediaDevices.getSupportedConstraints exists.")
    at Test.<anonymous> ( /mediacapture-streams/MediaDevices-getUserMedia.https.html:23:3)
FailgroupId is correctly supported by getUserMedia() for video devicespromise_test: Unhandled rejection with value: object "Error: set_permission() is not implemented by testdriver-vendor.js"
Error
    at get_stack (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:4571:21)
    at new AssertionError (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:4564:22)
    at assert (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:4548:19)
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:764:29)
    at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
    at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2689:35
Asserts runNo asserts ran
FailgroupId is correctly supported by getUserMedia() for audio devicespromise_test: Unhandled rejection with value: object "NotFoundError: Requested device not found"
Error
    at get_stack (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:4571:21)
    at new AssertionError (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:4564:22)
    at assert (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:4548:19)
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:764:29)
    at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
    at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2689:35
Asserts runNo asserts ran
FailgetUserMedia() supports setting none as resizeMode.promise_test: Unhandled rejection with value: object "NotFoundError: Requested device not found"
Error
    at get_stack (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:4571:21)
    at new AssertionError (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:4564:22)
    at assert (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:4548:19)
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:764:29)
    at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
    at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2689:35
Asserts run
Pass
assert_true(true, "resizeMode should be supported")
    at Test.<anonymous> ( /mediacapture-streams/MediaDevices-getUserMedia.https.html:100:3)
FailgetUserMedia() supports setting crop-and-scale as resizeMode.promise_test: Unhandled rejection with value: object "NotFoundError: Requested device not found"
Error
    at get_stack (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:4571:21)
    at new AssertionError (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:4564:22)
    at assert (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:4548:19)
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:764:29)
    at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
    at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2689:35
Asserts run
Pass
assert_true(true, "resizeMode should be supported")
    at Test.<anonymous> ( /mediacapture-streams/MediaDevices-getUserMedia.https.html:110:3)
FailgetUserMedia() fails with exact invalid resizeMode.assert_equals: expected "OverconstrainedError" but got "NotFoundError"
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/mediacapture-streams/MediaDevices-getUserMedia.https.html:128:5)
Asserts run
Pass
assert_true(true, "resizeMode should be supported")
    at Test.<anonymous> ( /mediacapture-streams/MediaDevices-getUserMedia.https.html:120:3)
Fail
assert_equals("NotFoundError", "OverconstrainedError")
    at Test.<anonymous> ( /mediacapture-streams/MediaDevices-getUserMedia.https.html:128:5)