summaryrefslogtreecommitdiffstats
path: root/dom/messagechannel/tests/worker_messageChannel_any.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/messagechannel/tests/worker_messageChannel_any.js')
-rw-r--r--dom/messagechannel/tests/worker_messageChannel_any.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/dom/messagechannel/tests/worker_messageChannel_any.js b/dom/messagechannel/tests/worker_messageChannel_any.js
new file mode 100644
index 000000000..bbb1d50f9
--- /dev/null
+++ b/dom/messagechannel/tests/worker_messageChannel_any.js
@@ -0,0 +1,7 @@
+onmessage = function(evt) {
+ evt.data.onmessage = function(event) {
+ evt.data.postMessage(event.data);
+ }
+}
+
+postMessage("READY");