diff --git a/testing/web-platform/tests/workers/semantics/multiple-workers/005.html b/testing/web-platform/tests/workers/semantics/multiple-workers/005.html deleted file mode 100644 index 63738c94132e..000000000000 --- a/testing/web-platform/tests/workers/semantics/multiple-workers/005.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -dedicated worker in shared worker in dedicated worker - - -
- - - - diff --git a/testing/web-platform/tests/workers/semantics/multiple-workers/006-1.js b/testing/web-platform/tests/workers/semantics/multiple-workers/006-1.js deleted file mode 100644 index 6c1ed932321c..000000000000 --- a/testing/web-platform/tests/workers/semantics/multiple-workers/006-1.js +++ /dev/null @@ -1,3 +0,0 @@ - onconnect = function(e) { - e.ports[0].postMessage('3'); - } \ No newline at end of file diff --git a/testing/web-platform/tests/workers/semantics/multiple-workers/006.html b/testing/web-platform/tests/workers/semantics/multiple-workers/006.html deleted file mode 100644 index c0dbeef9a311..000000000000 --- a/testing/web-platform/tests/workers/semantics/multiple-workers/006.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -shared worker in dedicated worker in shared worker - - -
- - - - diff --git a/testing/web-platform/tests/workers/semantics/multiple-workers/007.html b/testing/web-platform/tests/workers/semantics/multiple-workers/007.html deleted file mode 100644 index a23292532576..000000000000 --- a/testing/web-platform/tests/workers/semantics/multiple-workers/007.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - -shared worker in dedicated worker in shared worker - - - -
- - - - diff --git a/testing/web-platform/tests/workers/semantics/multiple-workers/exposure.any.js b/testing/web-platform/tests/workers/semantics/multiple-workers/exposure.any.js new file mode 100644 index 000000000000..baaf07160475 --- /dev/null +++ b/testing/web-platform/tests/workers/semantics/multiple-workers/exposure.any.js @@ -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");