Description

This test checks for the presence of the navigator.mediaDevices.enumerateDevices() method.

Summary

Harness status: OK

Found 4 tests

Details

ResultTest NameMessage
PassmediaDevices.enumerateDevices() is present and working - before capture
Asserts run
Pass
assert_not_equals(function "function enumerateDevices() { [native code] }", undefined, "navigator.mediaDevices.enumerateDevices exists")
    at Test.<anonymous> ( /mediacapture-streams/MediaDevices-enumerateDevices.https.html:25:3)
Pass
assert_less_than_equal(0, 1, "there should be zero or one audio input device.")
    at Test.<anonymous> ( /mediacapture-streams/MediaDevices-enumerateDevices.https.html:33:3)
Pass
assert_less_than_equal(0, 1, "there should be zero or one video input device.")
    at Test.<anonymous> ( /mediacapture-streams/MediaDevices-enumerateDevices.https.html:35:3)
Pass
assert_equals(0, 0, "there should be no audio output devices.")
    at Test.<anonymous> ( /mediacapture-streams/MediaDevices-enumerateDevices.https.html:37:3)
Pass
assert_less_than_equal(0, 2, "there should be no more than two devices.")
    at Test.<anonymous> ( /mediacapture-streams/MediaDevices-enumerateDevices.https.html:39:3)
FailmediaDevices.enumerateDevices() is working - after video capturepromise_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
FailmediaDevices.enumerateDevices() is working - after video then audio capturepromise_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
PassInputDeviceInfo is supported
Asserts runNo asserts ran