Files
firefox/devtools/client/shared/test/testactors.js
T

28 lines
552 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;