зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1058997 - Part 3c: Remove always allow init calls from tests. r=past
This commit is contained in:
Родитель
6bbfd73703
Коммит
fe3b52b03e
|
@ -29,7 +29,7 @@ exports.testDebugger = function(assert, done) {
|
|||
set('devtools.debugger.log', true);
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ exports.testDebugger = function(assert, done) {
|
|||
ok(true, 'PageMod was created');
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ Bug 901519 - [app manager] data store for connections
|
|||
Cu.import("resource://gre/modules/devtools/dbg-server.jsm");
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ Bug 901520 - [app manager] data store for device
|
|||
Cu.import("resource://gre/modules/devtools/dbg-server.jsm");
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ Bug 912646 - Closing app toolbox causes phone to disconnect
|
|||
Cu.import("resource://gre/modules/devtools/dbg-server.jsm");
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -184,7 +184,7 @@ function reload(aTarget, aWaitForTargetEvent = "navigate") {
|
|||
|
||||
function initServer() {
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ var gAddon, gClient, gThreadClient;
|
|||
|
||||
function test() {
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ let gClient, gThreadClient, gInput, gButton;
|
|||
|
||||
function test() {
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ let gClient, gThreadClient;
|
|||
|
||||
function test() {
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ let DebuggerServer = loader.DebuggerServer;
|
|||
|
||||
function test() {
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ let gTab;
|
|||
|
||||
function test() {
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ let gTab;
|
|||
|
||||
function test() {
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ let gTab;
|
|||
|
||||
function test() {
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ let gTab;
|
|||
|
||||
function test() {
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ function test() {
|
|||
let gClient;
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ let gAddon1, gAddon1Actor, gAddon2, gAddon2Actor, gClient;
|
|||
|
||||
function test() {
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ let gTab1, gTab1Actor, gTab2, gTab2Actor, gClient;
|
|||
|
||||
function test() {
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ function onListChangedHandler() {
|
|||
|
||||
function test() {
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ function request(params) {
|
|||
|
||||
function test() {
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ let gClient;
|
|||
|
||||
function test() {
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ let gClient;
|
|||
|
||||
function test() {
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ let gClient;
|
|||
|
||||
function test() {
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ let gClient;
|
|||
|
||||
function test() {
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -551,7 +551,7 @@ AddonDebugger.prototype = {
|
|||
info("Initializing an addon debugger panel.");
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ function test() {
|
|||
waitForExplicitFinish();
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ function test() {
|
|||
waitForExplicitFinish();
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ function getClient() {
|
|||
let deferred = promise.defer();
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ function test() {
|
|||
waitForExplicitFinish();
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -139,7 +139,7 @@ function initBackend(aUrl) {
|
|||
info("Initializing a performance front.");
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -234,7 +234,7 @@ function initBackend(aUrl) {
|
|||
info("Initializing a shader editor front.");
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ function initBackend(aUrl) {
|
|||
info("Initializing a web audio editor front.");
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ function test() {
|
|||
// Since we test the connections set below, destroy the server in case it
|
||||
// was left open.
|
||||
DebuggerServer.destroy();
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
||||
let tab = yield addTab(TEST_URI);
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
Task.spawn(function* () {
|
||||
|
||||
Cu.import("resource://gre/modules/devtools/dbg-server.jsm");
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
||||
let win = yield openWebIDE();
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
Cu.import("resource://gre/modules/devtools/dbg-server.jsm");
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
Cu.import("resource://gre/modules/devtools/dbg-server.jsm");
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
Cu.import("resource://gre/modules/devtools/dbg-server.jsm");
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -223,7 +223,7 @@
|
|||
Cu.import("resource://gre/modules/devtools/dbg-server.jsm");
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ function connect(onDone) {
|
|||
Services.obs.addObserver(observer, "debugger-server-started", false);
|
||||
} else {
|
||||
// Initialize a loopback remote protocol connection
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
// We need to register browser actors to have `listTabs` working
|
||||
// and also have a root actor
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
|
|
@ -21,7 +21,7 @@ let gClient, gActor, gActorFront;
|
|||
|
||||
function connect(onDone) {
|
||||
// Initialize a loopback remote protocol connection
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
// We need to register browser actors to have `listTabs` working
|
||||
// and also have a root actor
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
|
|
@ -56,7 +56,7 @@ function initDebuggerServer() {
|
|||
// tests.
|
||||
DebuggerServer.destroy();
|
||||
} catch (ex) { }
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ SimpleTest.registerCleanupFunction(function() {
|
|||
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
SimpleTest.registerCleanupFunction(function() {
|
||||
DebuggerServer.destroy();
|
||||
|
|
|
@ -20,7 +20,7 @@ let { require } = devtools;
|
|||
let { MemoryFront } = require("devtools/server/actors/memory");
|
||||
|
||||
function startServerAndGetSelectedTabMemory() {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
var client = new DebuggerClient(DebuggerServer.connectPipe());
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ function runTests() {
|
|||
|
||||
// Instantiate a minimal server
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
}
|
||||
if (!DebuggerServer.createRootActor) {
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
|
|
@ -68,7 +68,7 @@ function runTests() {
|
|||
|
||||
// Instantiate a minimal server
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
}
|
||||
if (!DebuggerServer.createRootActor) {
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
|
|
@ -23,7 +23,7 @@ window.onload = function() {
|
|||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ window.onload = function() {
|
|||
var {getDeviceFront} = devtools.require("devtools/server/actors/device");
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ window.onload = function() {
|
|||
var {FramerateFront} = devtools.require("devtools/server/actors/framerate");
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ window.onload = function() {
|
|||
var {FramerateFront} = devtools.require("devtools/server/actors/framerate");
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ window.onload = function() {
|
|||
var TOTAL_TIME = 5000;
|
||||
|
||||
if (!DebuggerServer.initialized) {
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ window.onload = function() {
|
|||
|
||||
var {FramerateFront} = devtools.require("devtools/server/actors/framerate");
|
||||
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
||||
var client = new DebuggerClient(DebuggerServer.connectPipe());
|
||||
|
|
|
@ -27,7 +27,7 @@ function runTests() {
|
|||
|
||||
var {getPreferenceFront} = devtools.require("devtools/server/actors/preference");
|
||||
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
||||
var client = new DebuggerClient(DebuggerServer.connectPipe());
|
||||
|
|
|
@ -16,7 +16,7 @@ function run_test()
|
|||
DebuggerServer.addActors("resource://test/pre_init_global_actors.js");
|
||||
DebuggerServer.addActors("resource://test/pre_init_tab_actors.js");
|
||||
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
||||
DebuggerServer.addActors("resource://test/post_init_global_actors.js");
|
||||
|
|
|
@ -28,7 +28,7 @@ function run_test()
|
|||
{
|
||||
DebuggerServer.addGlobalActor(TestActor);
|
||||
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
||||
add_test(init);
|
||||
|
|
|
@ -15,7 +15,7 @@ function run_test()
|
|||
check_except(DebuggerServer.connectPipe);
|
||||
|
||||
// Allow incoming connections.
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
|
||||
// These should still fail because we haven't added a createRootActor
|
||||
// implementation yet.
|
||||
|
|
|
@ -11,7 +11,7 @@ function run_test()
|
|||
{
|
||||
let {EventLoopLagFront} = devtools.require("devtools/server/actors/eventlooplag");
|
||||
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
||||
// As seen in EventTracer.cpp
|
||||
|
|
|
@ -25,7 +25,7 @@ function check_footprint(step, max) {
|
|||
}
|
||||
|
||||
function init_server() {
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
check_footprint("DebuggerServer.init()", 500);
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ function run_test()
|
|||
{
|
||||
let EventEmitter = devtools.require("devtools/toolkit/event-emitter");
|
||||
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
||||
let client = new DebuggerClient(DebuggerServer.connectPipe());
|
||||
|
|
|
@ -26,7 +26,7 @@ function run_test()
|
|||
// happen if the MOZ_PROFILER_STARTUP environment variable is set).
|
||||
Profiler.StopProfiler();
|
||||
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
||||
connect_client((client1, actor1) => {
|
||||
|
|
|
@ -27,7 +27,7 @@ function run_test()
|
|||
Profiler.StartProfiler(1000000, 1, ["js"], 1);
|
||||
|
||||
DevToolsUtils.waitForTime(WAIT_TIME).then(() => {
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
||||
connect_client((client, actor) => {
|
||||
|
|
|
@ -22,7 +22,7 @@ function connect_client(callback)
|
|||
|
||||
function run_test()
|
||||
{
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
||||
connect_client((client1, actor1) => {
|
||||
|
|
|
@ -24,7 +24,7 @@ function connect_client(callback)
|
|||
|
||||
function run_test()
|
||||
{
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
||||
connect_client((client, actor) => {
|
||||
|
|
|
@ -21,7 +21,7 @@ function connect_client(callback)
|
|||
|
||||
function run_test()
|
||||
{
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
||||
connect_client((client, actor) => {
|
||||
|
|
|
@ -22,7 +22,7 @@ function connect_client(callback)
|
|||
|
||||
function run_test()
|
||||
{
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
||||
connect_client((client, actor) => {
|
||||
|
|
|
@ -91,7 +91,7 @@ let RootFront = protocol.FrontClass(RootActor, {
|
|||
function run_test()
|
||||
{
|
||||
DebuggerServer.createRootActor = RootActor;
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
|
||||
let trace = connectPipeTracing();
|
||||
let client = new DebuggerClient(trace);
|
||||
|
|
|
@ -260,7 +260,7 @@ function run_test()
|
|||
DebuggerServer.createRootActor = (conn => {
|
||||
return RootActor(conn);
|
||||
});
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
|
||||
let trace = connectPipeTracing();
|
||||
let client = new DebuggerClient(trace);
|
||||
|
|
|
@ -126,7 +126,7 @@ const run_test = Test(function*() {
|
|||
DebuggerServer.createRootActor = (conn => {
|
||||
return RootActor(conn);
|
||||
});
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
|
||||
const connection = DebuggerServer.connectPipe();
|
||||
const conn = new DebuggerClient(connection);
|
||||
|
|
|
@ -83,7 +83,7 @@ function run_test()
|
|||
return RootActor(conn);
|
||||
});
|
||||
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
let trace = connectPipeTracing();
|
||||
let client = new DebuggerClient(trace);
|
||||
let rootClient;
|
||||
|
|
|
@ -161,7 +161,7 @@ function run_test()
|
|||
DebuggerServer.createRootActor = (conn => {
|
||||
return RootActor(conn);
|
||||
});
|
||||
DebuggerServer.init(() => true);
|
||||
DebuggerServer.init();
|
||||
|
||||
check_except(() => {
|
||||
let badActor = ActorClass({
|
||||
|
|
|
@ -53,7 +53,7 @@ function run_test()
|
|||
{
|
||||
DebuggerServer.addGlobalActor(TestActor);
|
||||
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
||||
add_test(init);
|
||||
|
|
|
@ -16,7 +16,7 @@ function check_actors(expect) {
|
|||
function run_test()
|
||||
{
|
||||
// Allow incoming connections.
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
|
||||
add_test(test_deprecated_api);
|
||||
|
|
|
@ -38,7 +38,7 @@ function test_existent_actor(aClient, anActor)
|
|||
|
||||
function run_test()
|
||||
{
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
DebuggerServer.addBrowserActors();
|
||||
var client = new DebuggerClient(DebuggerServer.connectPipe());
|
||||
client.connect(function() {
|
||||
|
|
|
@ -196,7 +196,7 @@ function initTestDebuggerServer() {
|
|||
});
|
||||
DebuggerServer.registerModule("xpcshell-test/testactors");
|
||||
// Allow incoming connections.
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
}
|
||||
|
||||
function finishClient(aClient) {
|
||||
|
|
|
@ -13,7 +13,7 @@ let { Promise: promise } = Cu.import("resource://gre/modules/Promise.jsm", {});
|
|||
function run_test() {
|
||||
DebuggerServer.registerModule("xpcshell-test/testactors-no-bulk");
|
||||
// Allow incoming connections.
|
||||
DebuggerServer.init(function () { return true; });
|
||||
DebuggerServer.init();
|
||||
|
||||
add_task(function() {
|
||||
yield test_bulk_send_error(socket_transport);
|
||||
|
|
Загрузка…
Ссылка в новой задаче