summaryrefslogtreecommitdiffstats
path: root/devtools/server/tests/mochitest/setup-in-parent.js
blob: 9845ee64790160c3a6a8f0a062b92d59edcd6d10 (plain)
1
2
3
4
5
6
7
8
9
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));
};