summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/examples/onconnect.any.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/workers/examples/onconnect.any.js')
-rw-r--r--testing/web-platform/tests/workers/examples/onconnect.any.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/web-platform/tests/workers/examples/onconnect.any.js b/testing/web-platform/tests/workers/examples/onconnect.any.js
new file mode 100644
index 0000000000..d43a992183
--- /dev/null
+++ b/testing/web-platform/tests/workers/examples/onconnect.any.js
@@ -0,0 +1,4 @@
+// META: global=sharedworker
+const t = async_test("onconnect is called");
+onconnect = t.step_func_done((event) => {
+});