diff options
Diffstat (limited to 'testing/web-platform/tests/screen-wake-lock/wakelock-insecure-context.any.js')
-rw-r--r-- | testing/web-platform/tests/screen-wake-lock/wakelock-insecure-context.any.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/web-platform/tests/screen-wake-lock/wakelock-insecure-context.any.js b/testing/web-platform/tests/screen-wake-lock/wakelock-insecure-context.any.js new file mode 100644 index 0000000000..f32cc3c354 --- /dev/null +++ b/testing/web-platform/tests/screen-wake-lock/wakelock-insecure-context.any.js @@ -0,0 +1,5 @@ +//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"); |