Skip to content

Commit

Permalink
Bug 1635066 [wpt PR 23381] - Workers: test where Worker/SharedWorker …
Browse files Browse the repository at this point in the history
…are exposed, a=testonly

Automatic update from web-platform-tests
Workers: test where Worker/SharedWorker are exposed

And remove broken tests.

For whatwg/html#5601.
--

wpt-commits: 84d101a169cf21f345a5c3bd39f27b919a16195b
wpt-pr: 23381
  • Loading branch information
annevk authored and moz-wptsync-bot committed Jun 12, 2020
1 parent 1feca0f commit 539d2b2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 121 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// META: global=window,worker

test(() => {
const assert = "ServiceWorkerGlobalScope" in globalThis ? assert_equals : assert_not_equals;
assert(globalThis.Worker, undefined);
}, "Worker exposure");

test(() => {
const assert = globalThis.GLOBAL.isWindow() ? assert_not_equals : assert_equals;
assert(globalThis.SharedWorker, undefined);
}, "SharedWorker exposure");

0 comments on commit 539d2b2

Please sign in to comment.