diff options
Diffstat (limited to 'testing/web-platform/tests/idle-detection/idlharness-worker.https.window.js')
-rw-r--r-- | testing/web-platform/tests/idle-detection/idlharness-worker.https.window.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/web-platform/tests/idle-detection/idlharness-worker.https.window.js b/testing/web-platform/tests/idle-detection/idlharness-worker.https.window.js new file mode 100644 index 0000000000..e8fcf9ede6 --- /dev/null +++ b/testing/web-platform/tests/idle-detection/idlharness-worker.https.window.js @@ -0,0 +1,10 @@ +// META: script=/resources/testdriver.js +// META: script=/resources/testdriver-vendor.js + +'use strict'; + +promise_test(async t => { + await test_driver.set_permission({name: 'idle-detection'}, 'granted'); + + await fetch_tests_from_worker(new Worker('resources/idlharness-worker.js')); +}, 'Run idlharness tests in a worker.'); |