When prompted, accept to share your camera or microphone.

Description

This test checks that permissions.query() of camera and microphone produce "granted" after successful calls to getUserMedia for the respective device kinds.

Summary

Harness status: OK

Found 2 tests

Details

ResultTest NameMessage
Failcamera is granted after getUserMedia, according to permissions.query()promise_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 run
Pass
assert_equals("prompt", "prompt", "initial camera state is prompt")
    at Test.<anonymous> ( /mediacapture-streams/GUM-permissions-query.https.html:21:3)
Failmicrophone is granted after getUserMedia, according to permissions.query()promise_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 run
Pass
assert_equals("prompt", "prompt", "initial microphone state is prompt")
    at Test.<anonymous> ( /mediacapture-streams/GUM-permissions-query.https.html:39:3)