gecko-dev/devtools/client/shared/test/testactors.js
Victor Porof f6db0ee557 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884

--HG--
extra : source : 60e4496cf9699dc59f2f4738cb60f87cbdb01e67
2019-07-05 11:24:38 +02:00

27 lines
537 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
function TestActor1(connection, tab) {
this.conn = connection;
this.tab = tab;
}
TestActor1.prototype = {
actorPrefix: "testOne",
grip: function TA1_grip() {
return { actor: this.actorID, test: "TestActor1" };
},
onPing: function TA1_onPing() {
return { pong: "pong" };
},
};
TestActor1.prototype.requestTypes = {
ping: TestActor1.prototype.onPing,
};
exports.TestActor1 = TestActor1;