Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /screen-wake-lock/wakelock-screen-type-on-worker.https.worker.html - WPT Dashboard Interop Dashboard
//META: title=Screen wake lock should not be allowed in dedicated worker
importScripts("/resources/testharness.js");
promise_test(t => {
return promise_rejects_dom(t, "NotAllowedError", navigator.wakeLock.request('screen'));
}, "Screen wake lock should not be allowed in dedicated worker");
done();