44 var
bmsvc =
Cc[
"@mozilla.org/browser/nav-bookmarks-service;1"].
46 var
txnsvc =
Cc[
"@mozilla.org/browser/placesTransactionsService;1"].
51 var itemId =
bmsvc.getIdForItemAt(
bmsvc.unfiledBookmarksFolder, 0);
52 var GUID =
bmsvc.getItemGUID(itemId);
53 aTxn.undoTransaction();
54 aTxn.redoTransaction();
56 aTxn.undoTransaction();
61 var createFolderTxn =
txnsvc.createFolder(
"Test folder",
62 bmsvc.unfiledBookmarksFolder,
67 var createBookmarkTxn =
txnsvc.createItem(
uri(
"http://www.example.com"),
68 bmsvc.unfiledBookmarksFolder,
74 var createSeparatorTxn =
txnsvc.createSeparator(
bmsvc.unfiledBookmarksFolder,
79 var createLivemarkTxn =
txnsvc.createLivemark(
uri(
"http://feeduri.com"),
80 uri(
"http://siteuri.com"),
82 bmsvc.unfiledBookmarksFolder,
87 var tagURITxn =
txnsvc.tagURI(
uri(
"http://www.example.com"), [
"foo"]);
do_check_eq(typeof PlacesUtils,"object")
getService(Ci.sbIFaceplateManager)
function test_GUID_persistance(aTxn)