wakelock-supported-by-permissions-policy.html (567B)
1 <!DOCTYPE html> 2 <title>Test that screen-wake-lock is advertised in the feature list</title> 3 <link rel="help" href="https://w3c.github.io/webappsec-feature-policy/#dom-featurepolicy-features"> 4 <link rel="help" href="https://w3c.github.io/screen-wake-lock/#dfn-wake-lock-feature"> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <script> 8 test(() => { 9 assert_in_array('screen-wake-lock', document.featurePolicy.features()); 10 }, 'document.featurePolicy.features should advertise screen-wake-lock.'); 11 </script>