From 32db9d2d5c3a615d427d5d9b604747e85a8e562a Mon Sep 17 00:00:00 2001 From: Mark Hammond Date: Wed, 27 Apr 2016 15:17:05 -0700 Subject: [PATCH] Bug 1277983 - Improve bookmarks engine test logging and remove a deprecated call. r=kitcambridge MozReview-Commit-ID: GEs6pYYnt7x --HG-- extra : rebase_source : ec911c1437dc70b8807b44d6be403ca9c035c599 --- services/sync/tests/unit/test_bookmark_engine.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/sync/tests/unit/test_bookmark_engine.js b/services/sync/tests/unit/test_bookmark_engine.js index 38bdcfe332f7..3845dcd77bb9 100644 --- a/services/sync/tests/unit/test_bookmark_engine.js +++ b/services/sync/tests/unit/test_bookmark_engine.js @@ -12,6 +12,8 @@ Cu.import("resource://services-sync/util.js"); Cu.import("resource://testing-common/services/sync/utils.js"); Cu.import("resource://gre/modules/Promise.jsm"); +initTestLogging("Trace"); + Service.engineManager.register(BookmarksEngine); add_test(function bad_record_allIDs() { @@ -204,8 +206,7 @@ add_task(function* test_restorePromptsReupload() { backupFile.append("t_b_e_" + Date.now() + ".json"); _("Backing up to file " + backupFile.path); - backupFile.create(Ci.nsILocalFile.NORMAL_FILE_TYPE, 0o600); - yield BookmarkJSONUtils.exportToFile(backupFile); + yield BookmarkJSONUtils.exportToFile(backupFile.path); _("Create a different record and sync."); let bmk2_id = PlacesUtils.bookmarks.insertBookmark(