summaryrefslogtreecommitdiffstats
path: root/devtools/server/tests/unit/pre_init_tab_actors.js
blob: 628f0fb2fe79d6ac0cb8a49394dd94bdb7bfd300 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */

function PreInitTabActor(aConnection) {}

PreInitTabActor.prototype = {
  actorPrefix: "preInitTab",
  onPing: function onPing(aRequest) {
    return { message: "pong" };
  },
};

PreInitTabActor.prototype.requestTypes = {
  "ping": PreInitTabActor.prototype.onPing,
};

DebuggerServer.addGlobalActor(PreInitTabActor, "preInitTabActor");