chromium/third_party/blink/web_tests/external/wpt/screen-wake-lock/wakelock-screen-type-on-worker.https.worker.js

//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();