Skip to content

Commit

Permalink
Workers: test where Worker/SharedWorker are exposed
Browse files Browse the repository at this point in the history
And remove broken tests.

For whatwg/html#5601.
  • Loading branch information
annevk authored Jun 3, 2020
1 parent 86610ed commit 84d101a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 121 deletions.
38 changes: 0 additions & 38 deletions workers/semantics/multiple-workers/005.html

This file was deleted.

3 changes: 0 additions & 3 deletions workers/semantics/multiple-workers/006-1.js

This file was deleted.

39 changes: 0 additions & 39 deletions workers/semantics/multiple-workers/006.html

This file was deleted.

41 changes: 0 additions & 41 deletions workers/semantics/multiple-workers/007.html

This file was deleted.

11 changes: 11 additions & 0 deletions workers/semantics/multiple-workers/exposure.any.js
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 84d101a

Please sign in to comment.