Bug 1342320 - Use PlacesUtils and not PlacesSyncUtils in sync bookmark decline/undecline test r=markh
authorThom Chiovoloni <tchiovoloni@mozilla.com>
Tue, 14 Mar 2017 13:01:10 -0400
changeset 348424 b08acf51cbd1141d26804f55371bcd900169e5ac
parent 348423 75a3db6d2f77f72da5e4c2f556a78a328f61213c
child 348425 aaa6a3933cc3515307c37c8d0dcf6846addf2c81
push id39158
push usertchiovoloni@mozilla.com
push dateMon, 20 Mar 2017 15:21:08 +0000
treeherderautoland@b08acf51cbd1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarkh
bugs1342320
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1342320 - Use PlacesUtils and not PlacesSyncUtils in sync bookmark decline/undecline test r=markh MozReview-Commit-ID: DgbCeKgSxoE
services/sync/tests/unit/test_bookmark_decline_undecline.js
--- a/services/sync/tests/unit/test_bookmark_decline_undecline.js
+++ b/services/sync/tests/unit/test_bookmark_decline_undecline.js
@@ -65,23 +65,21 @@ function getBookmarkWBO(server, guid) {
 }
 
 add_task(async function test_decline_undecline() {
   let engine = Service.engineManager.get("bookmarks");
   let server = serverForFoo(engine);
   await SyncTestingInfrastructure(server);
 
   try {
-    let bzGuid = "999999999999";
-    await PlacesSyncUtils.bookmarks.insert({
-      kind: PlacesSyncUtils.bookmarks.KINDS.BOOKMARK,
-      syncId: bzGuid,
-      parentSyncId: "menu",
+    let { guid: bzGuid } = await PlacesUtils.bookmarks.insert({
+      parentGuid: PlacesUtils.bookmarks.menuGuid,
       url: "https://bugzilla.mozilla.org",
-
+      index: PlacesUtils.bookmarks.DEFAULT_INDEX,
+      title: "bugzilla",
     });
 
     ok(!getBookmarkWBO(server, bzGuid), "Shouldn't have been uploaded yet");
     Service.sync();
     ok(getBookmarkWBO(server, bzGuid), "Should be present on server");
 
     engine.enabled = false;
     Service.sync();