summaryrefslogtreecommitdiffstats
path: root/devtools/server/tests/mochitest/setup-in-parent.js
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/server/tests/mochitest/setup-in-parent.js')
-rw-r--r--devtools/server/tests/mochitest/setup-in-parent.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/devtools/server/tests/mochitest/setup-in-parent.js b/devtools/server/tests/mochitest/setup-in-parent.js
new file mode 100644
index 000000000..9845ee647
--- /dev/null
+++ b/devtools/server/tests/mochitest/setup-in-parent.js
@@ -0,0 +1,10 @@
+var {Ci} = require("chrome");
+var Services = require("Services");
+
+exports.setupParent = function ({mm, prefix}) {
+ let args = [
+ !!mm.QueryInterface(Ci.nsIMessageSender),
+ prefix
+ ];
+ Services.obs.notifyObservers(null, "test:setupParent", JSON.stringify(args));
+};