Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
FailGeneric Sensor Report Formatassert_throws_dom: Constructing sensors should be blocked by policy function "() => new AmbientLightSensor()" threw object "ReferenceError: AmbientLightSensor is not defined" that is not a DOMException SecurityError: property "code" is equal to undefined, expected 18
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/feature-policy/reporting/generic-sensor-reporting.https.html:49:3)
    at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2684:25)
    at async_test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:681:34)
    at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/feature-policy/reporting/generic-sensor-reporting.https.html:45:1
Asserts run
Pass
assert_throws_dom("SecurityError", function "() => new Accelerometer()", "Constructing sensors should be blocked by policy")
    at Test.<anonymous> ( /feature-policy/reporting/generic-sensor-reporting.https.html:48:3)
Fail
assert_throws_dom("SecurityError", function "() => new AmbientLightSensor()", "Constructing sensors should be blocked by policy")
    at Test.<anonymous> ( /feature-policy/reporting/generic-sensor-reporting.https.html:49:3)