-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1635066 [wpt PR 23381] - Workers: test where Worker/SharedWorker …
…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
1 parent
1feca0f
commit 539d2b2
Showing
5 changed files
with
11 additions
and
121 deletions.
There are no files selected for viewing
38 changes: 0 additions & 38 deletions
38
testing/web-platform/tests/workers/semantics/multiple-workers/005.html
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
testing/web-platform/tests/workers/semantics/multiple-workers/006-1.js
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
testing/web-platform/tests/workers/semantics/multiple-workers/006.html
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
testing/web-platform/tests/workers/semantics/multiple-workers/007.html
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
testing/web-platform/tests/workers/semantics/multiple-workers/exposure.any.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |