gecko-dev/devtools/server/tests/unit/post_init_tab_actors.js

20 строки
451 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
function PostInitTabActor(connection) {}
PostInitTabActor.prototype = {
actorPostfix: "postInitTab",
onPing(request) {
return { message: "pong" };
},
};
PostInitTabActor.prototype.requestTypes = {
"ping": PostInitTabActor.prototype.onPing,
};
DebuggerServer.addGlobalActor(PostInitTabActor, "postInitTabActor");