summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/constructors/SharedWorker/global-members.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/workers/constructors/SharedWorker/global-members.html')
-rw-r--r--testing/web-platform/tests/workers/constructors/SharedWorker/global-members.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/web-platform/tests/workers/constructors/SharedWorker/global-members.html b/testing/web-platform/tests/workers/constructors/SharedWorker/global-members.html
new file mode 100644
index 0000000000..2da4fc1cee
--- /dev/null
+++ b/testing/web-platform/tests/workers/constructors/SharedWorker/global-members.html
@@ -0,0 +1,12 @@
+<!doctype html>
+<title>members of SharedWorkerGlobalScope</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+async_test(t => {
+ const worker = new SharedWorker('global-members.js');
+ worker.port.onmessage = t.step_func_done(e => {
+ assert_equals(e.data, '');
+ });
+}, 'Test if global members exist in a shared worker');
+</script>