зеркало из https://github.com/mozilla/pjs.git
Bug 583830 - Merge fx-sync to mozilla-central
This commit is contained in:
Коммит
0e52c87f5b
|
@ -39,6 +39,9 @@ function check(expected) {
|
|||
}
|
||||
|
||||
function run_test() {
|
||||
//XXXzpao test is disabled (bug 583985)
|
||||
return;
|
||||
|
||||
_("Starting with a clean slate of no bookmarks");
|
||||
let store = new (new BookmarksEngine())._storeObj();
|
||||
store.wipe();
|
||||
|
|
|
@ -3,6 +3,9 @@ Cu.import("resource://services-sync/engines/bookmarks.js");
|
|||
Cu.import("resource://services-sync/util.js");
|
||||
|
||||
function run_test() {
|
||||
//XXXzpao test is disabled (bug 583985)
|
||||
return;
|
||||
|
||||
_("Starting with a clean slate of no bookmarks");
|
||||
let store = new (new BookmarksEngine())._storeObj();
|
||||
store.wipe();
|
||||
|
|
|
@ -3,6 +3,9 @@ Cu.import("resource://services-sync/engines/forms.js");
|
|||
Cu.import("resource://services-sync/type_records/forms.js");
|
||||
|
||||
function run_test() {
|
||||
//XXXzpao test is disabled (bug 583985)
|
||||
return;
|
||||
|
||||
let store = new FormEngine()._store;
|
||||
|
||||
_("Remove any existing entries");
|
||||
|
|
|
@ -67,7 +67,7 @@ function test_findCluster() {
|
|||
} finally {
|
||||
Svc.Prefs.resetBranch("");
|
||||
if (server) {
|
||||
server.stop(function() {});
|
||||
server.stop(runNextTest);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ function test_setCluster() {
|
|||
|
||||
} finally {
|
||||
Svc.Prefs.resetBranch("");
|
||||
server.stop(function() {});
|
||||
server.stop(runNextTest);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -141,12 +141,21 @@ function test_updateCluster() {
|
|||
|
||||
} finally {
|
||||
Svc.Prefs.resetBranch("");
|
||||
server.stop(function() {});
|
||||
server.stop(runNextTest);
|
||||
}
|
||||
}
|
||||
|
||||
let tests = [test_findCluster, test_setCluster, test_updateCluster];
|
||||
|
||||
function run_test() {
|
||||
test_findCluster();
|
||||
test_setCluster();
|
||||
test_updateCluster();
|
||||
do_test_pending();
|
||||
runNextTest();
|
||||
}
|
||||
|
||||
function runNextTest() {
|
||||
if (tests.length)
|
||||
tests.pop()();
|
||||
else
|
||||
do_test_finished();
|
||||
}
|
||||
|
||||
|
|
|
@ -2,6 +2,9 @@ _("Make sure queryAsync will synchronously fetch rows for a query asyncly");
|
|||
Cu.import("resource://services-sync/util.js");
|
||||
|
||||
function run_test() {
|
||||
//XXXzpao test is disabled (bug 583985)
|
||||
return;
|
||||
|
||||
_("Using the form service to test queries");
|
||||
function c(query) Svc.Form.DBConnection.createStatement(query);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче