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

UltraBlame original commit: 4a481dca84b353425398a139ba7570d62a907209
  • Loading branch information
marco-c committed Jun 15, 2020
1 parent 66b3548 commit 412f4d8
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 @@


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 412f4d8

Please sign in to comment.