зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1277983 - Improve bookmarks engine test logging and remove a deprecated call. r=kitcambridge
MozReview-Commit-ID: GEs6pYYnt7x --HG-- extra : rebase_source : ec911c1437dc70b8807b44d6be403ca9c035c599
This commit is contained in:
Родитель
ab58bab2bf
Коммит
32db9d2d5c
|
@ -12,6 +12,8 @@ Cu.import("resource://services-sync/util.js");
|
||||||
Cu.import("resource://testing-common/services/sync/utils.js");
|
Cu.import("resource://testing-common/services/sync/utils.js");
|
||||||
Cu.import("resource://gre/modules/Promise.jsm");
|
Cu.import("resource://gre/modules/Promise.jsm");
|
||||||
|
|
||||||
|
initTestLogging("Trace");
|
||||||
|
|
||||||
Service.engineManager.register(BookmarksEngine);
|
Service.engineManager.register(BookmarksEngine);
|
||||||
|
|
||||||
add_test(function bad_record_allIDs() {
|
add_test(function bad_record_allIDs() {
|
||||||
|
@ -204,8 +206,7 @@ add_task(function* test_restorePromptsReupload() {
|
||||||
backupFile.append("t_b_e_" + Date.now() + ".json");
|
backupFile.append("t_b_e_" + Date.now() + ".json");
|
||||||
|
|
||||||
_("Backing up to file " + backupFile.path);
|
_("Backing up to file " + backupFile.path);
|
||||||
backupFile.create(Ci.nsILocalFile.NORMAL_FILE_TYPE, 0o600);
|
yield BookmarkJSONUtils.exportToFile(backupFile.path);
|
||||||
yield BookmarkJSONUtils.exportToFile(backupFile);
|
|
||||||
|
|
||||||
_("Create a different record and sync.");
|
_("Create a different record and sync.");
|
||||||
let bmk2_id = PlacesUtils.bookmarks.insertBookmark(
|
let bmk2_id = PlacesUtils.bookmarks.insertBookmark(
|
||||||
|
|
Загрузка…
Ссылка в новой задаче