summaryrefslogtreecommitdiffstats
path: root/devtools/server/tests/unit/post_init_tab_actors.js
blob: 9b9ddf111d8578ebcf356ccf0d3b350bdf3188b4 (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 PostInitTabActor(aConnection) {}

PostInitTabActor.prototype = {
  actorPostfix: "postInitTab",
  onPing: function onPing(aRequest) {
    return { message: "pong" };
  },
};

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

DebuggerServer.addGlobalActor(PostInitTabActor, "postInitTabActor");