servo/tests/wpt/web-platform-tests/screen-wake-lock/wakelock-insecure-context.any.js

5 lines
209 B
JavaScript

//META: title=Wake Lock API is not exposed in an insecure context
test(() => {
assert_false("WakeLock" in self, "'WakeLock' must not be exposed");
}, "Wake Lock API is not exposed in an insecure context");