michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: function TestActor1(aConnection, aTab) michael@0: { michael@0: this.conn = aConnection; michael@0: this.tab = aTab; michael@0: } michael@0: michael@0: TestActor1.prototype = { michael@0: actorPrefix: "test_one", michael@0: michael@0: grip: function TA1_grip() { michael@0: return { actor: this.actorID, michael@0: test: "TestActor1" }; michael@0: }, michael@0: michael@0: onPing: function TA1_onPing() { michael@0: return { pong: "pong" }; michael@0: } michael@0: }; michael@0: michael@0: TestActor1.prototype.requestTypes = { michael@0: "ping": TestActor1.prototype.onPing michael@0: }; michael@0: michael@0: DebuggerServer.removeTabActor(TestActor1); michael@0: DebuggerServer.removeGlobalActor(TestActor1); michael@0: michael@0: DebuggerServer.addTabActor(TestActor1, "testTabActor1"); michael@0: DebuggerServer.addGlobalActor(TestActor1, "testGlobalActor1");