summaryrefslogtreecommitdiffstats
path: root/dom/broadcastchannel/tests/broadcastchannel_worker_any.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/broadcastchannel/tests/broadcastchannel_worker_any.js')
-rw-r--r--dom/broadcastchannel/tests/broadcastchannel_worker_any.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/dom/broadcastchannel/tests/broadcastchannel_worker_any.js b/dom/broadcastchannel/tests/broadcastchannel_worker_any.js
new file mode 100644
index 000000000..da8625c4d
--- /dev/null
+++ b/dom/broadcastchannel/tests/broadcastchannel_worker_any.js
@@ -0,0 +1,5 @@
+(new BroadcastChannel('foobar')).onmessage = function(event) {
+ event.target.postMessage(event.data);
+}
+
+postMessage("READY");