Bug 604565 - Attempt to make tests hang less on OS X. r=mconnor a=afrosdwilsh

Reduce amount of pointless network calls by not registering any engines for tests that provide their own fake engine implementations anyway.
This commit is contained in:
Philipp von Weitershausen 2010-10-19 00:07:04 +02:00
parent ac1ac89d0c
commit 5bb24d494d
4 changed files with 15 additions and 4 deletions

View File

@ -1,9 +1,11 @@
Cu.import("resource://services-sync/service.js");
Cu.import("resource://services-sync/engines.js");
Cu.import("resource://services-sync/status.js");
Cu.import("resource://services-sync/constants.js");
Cu.import("resource://services-sync/util.js");
Svc.DefaultPrefs.set("registerEngines", "");
Cu.import("resource://services-sync/service.js");
initTestLogging();
function CatapultEngine() {

View File

@ -1,4 +1,3 @@
Cu.import("resource://services-sync/service.js");
Cu.import("resource://services-sync/engines.js");
Cu.import("resource://services-sync/util.js");
Cu.import("resource://services-sync/constants.js");
@ -6,6 +5,11 @@ Cu.import("resource://services-sync/base_records/crypto.js");
Cu.import("resource://services-sync/base_records/keys.js");
Cu.import("resource://services-sync/base_records/wbo.js");
Svc.DefaultPrefs.set("registerEngines", "");
Cu.import("resource://services-sync/service.js");
initTestLogging();
function SteamEngine() {
SyncEngine.call(this, "Steam");
}

View File

@ -1,5 +1,8 @@
Cu.import("resource://services-sync/service.js");
Cu.import("resource://services-sync/engines.js");
Cu.import("resource://services-sync/util.js");
Svc.DefaultPrefs.set("registerEngines", "");
Cu.import("resource://services-sync/service.js");
function CanDecryptEngine() {

View File

@ -1,9 +1,11 @@
Cu.import("resource://services-sync/util.js");
Cu.import("resource://services-sync/service.js");
Cu.import("resource://services-sync/base_records/crypto.js");
Cu.import("resource://services-sync/base_records/keys.js");
Cu.import("resource://services-sync/resource.js");
Svc.DefaultPrefs.set("registerEngines", "");
Cu.import("resource://services-sync/service.js");
function FakeCollection() {
this.deleted = false;
}