56 db.append(
"places.sqlite");
59 do_check_false(db.exists());
63 let
ps =
Cc[
"@mozilla.org/preferences-service;1"].
68 let
hs =
Cc[
"@mozilla.org/browser/nav-history-service;1"].
72 do_check_eq(hs.databaseStatus, hs.DATABASE_STATUS_CREATE);
76 bs =
Cc[
"@mozilla.org/browser/nav-bookmarks-service;1"].
78 bs.insertBookmark(
bs.bookmarksMenuFolder,
uri(
"http://mozilla.org/"),
79 bs.DEFAULT_INDEX,
"migrated");
82 Cc[
"@mozilla.org/browser/browserglue;1"].getService(
Ci.nsIBrowserGlue);
86 let
os =
Cc[
"@mozilla.org/observer-service;1"].
93 do_timeout(3000,
"continue_test();");
97 let
bs =
Cc[
"@mozilla.org/browser/nav-bookmarks-service;1"].
101 let itemId = bs.getIdForItemAt(bs.bookmarksMenuFolder, 0);
105 do_check_eq(bs.getIdForItemAt(bs.bookmarksMenuFolder, 1), -1);
106 do_check_eq(bs.getIdForItemAt(bs.toolbarFolder, 0), -1);
do_check_eq(typeof PlacesUtils,"object")
function create_bookmarks_html(aFilename)
getService(Ci.sbIFaceplateManager)
const TOPIC_PLACES_INIT_COMPLETE
const PREF_SMART_BOOKMARKS_VERSION