summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/WorkerDebugger.postMessage_debugger.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/workers/test/WorkerDebugger.postMessage_debugger.js')
-rw-r--r--dom/workers/test/WorkerDebugger.postMessage_debugger.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/dom/workers/test/WorkerDebugger.postMessage_debugger.js b/dom/workers/test/WorkerDebugger.postMessage_debugger.js
new file mode 100644
index 000000000..4a231b7ab
--- /dev/null
+++ b/dom/workers/test/WorkerDebugger.postMessage_debugger.js
@@ -0,0 +1,9 @@
+"use strict"
+
+this.onmessage = function (event) {
+ switch (event.data) {
+ case "ping":
+ postMessage("pong");
+ break;
+ }
+};