servo/tests/wpt/web-platform-tests/wake-lock/wakelock-insecure-context.html

13 lines
443 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>Wake Lock API is not exposed in an insecure context</title>
<link rel="help" href="https://w3c.github.io/wake-lock/#wake-locks">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(t => {
assert_false("WakeLock" in self, "'WakeLock' must not be exposed");
}, "Wake Lock API is not exposed in an insecure context");
</script>