Bug 1408423 - Intermittent failure in test_nsINavBookmarkObserver.js. r=standard8
MozReview-Commit-ID: 9YPQKRPkFH7
--- a/toolkit/components/places/tests/bookmarks/test_nsINavBookmarkObserver.js
+++ b/toolkit/components/places/tests/bookmarks/test_nsINavBookmarkObserver.js
@@ -377,17 +377,17 @@ add_task(async function onItemMoved_book
{ name: "time", check: v => typeof(v) == "number" && v > 0 },
{ name: "transitionType", check: v => v === PlacesUtils.history.TRANSITION_TYPED },
{ name: "uri", check: v => v instanceof Ci.nsIURI && v.equals(uri) },
{ name: "parentId", check: v => v === PlacesUtils.unfiledBookmarksFolderId },
{ name: "guid", check: v => typeof(v) == "string" && GUID_RE.test(v) },
{ name: "parentGuid", check: v => typeof(v) == "string" && GUID_RE.test(v) },
] },
])]);
- PlacesTestUtils.addVisits({ uri, transition: TRANSITION_TYPED });
+ await PlacesTestUtils.addVisits({ uri, transition: TRANSITION_TYPED });
await promise;
});
add_task(async function onItemRemoved_bookmark() {
let id = PlacesUtils.bookmarks.getIdForItemAt(PlacesUtils.unfiledBookmarksFolderId, 0);
let guid = await PlacesUtils.promiseItemGuid(id);
let url = (await PlacesUtils.bookmarks.fetch(guid)).url;
let uri = Services.io.newURI(url);