summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/Worker-custom-event.any.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/workers/Worker-custom-event.any.js')
-rw-r--r--testing/web-platform/tests/workers/Worker-custom-event.any.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/web-platform/tests/workers/Worker-custom-event.any.js b/testing/web-platform/tests/workers/Worker-custom-event.any.js
new file mode 100644
index 0000000000..d7e983aadd
--- /dev/null
+++ b/testing/web-platform/tests/workers/Worker-custom-event.any.js
@@ -0,0 +1,8 @@
+// META: global=worker
+async_test(t => {
+ var target = self;
+ target.addEventListener('custom-event', t.step_func_done());
+
+ var event = new Event('custom-event');
+ target.dispatchEvent(event);
+}, 'Test CustomEvents on workers.');