browser/devtools/debugger/test/testactors.js

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* Any copyright is dedicated to the Public Domain.
     2    http://creativecommons.org/publicdomain/zero/1.0/ */
     4 function TestActor1(aConnection, aTab)
     5 {
     6   this.conn = aConnection;
     7   this.tab = aTab;
     8 }
    10 TestActor1.prototype = {
    11   actorPrefix: "test_one",
    13   grip: function TA1_grip() {
    14     return { actor: this.actorID,
    15              test: "TestActor1" };
    16   },
    18   onPing: function TA1_onPing() {
    19     return { pong: "pong" };
    20   }
    21 };
    23 TestActor1.prototype.requestTypes = {
    24   "ping": TestActor1.prototype.onPing
    25 };
    27 DebuggerServer.removeTabActor(TestActor1);
    28 DebuggerServer.removeGlobalActor(TestActor1);
    30 DebuggerServer.addTabActor(TestActor1, "testTabActor1");
    31 DebuggerServer.addGlobalActor(TestActor1, "testGlobalActor1");

mercurial