Bug 583830 - Merge fx-sync to mozilla-central

This commit is contained in:
Paul O’Shannessy 2010-08-03 00:54:53 -07:00
Родитель ac0ed89bc2 c745f15b21
Коммит 23ccf98693
5 изменённых файлов: 27 добавлений и 6 удалений

Просмотреть файл

@ -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);