55 db.append(
"places.sqlite");
58 do_check_false(db.exists());
62 corruptDB.append(
"corruptDB.sqlite");
63 corruptDB.copyTo(
gProfD,
"places.sqlite");
64 do_check_true(db.exists());
67 Cc[
"@mozilla.org/browser/browserglue;1"].getService(
Ci.nsIBrowserGlue);
70 let
hs =
Cc[
"@mozilla.org/browser/nav-history-service;1"].
74 do_check_eq(hs.databaseStatus, hs.DATABASE_STATUS_CORRUPT);
79 do_timeout(1000,
"continue_test();");
83 let
bs =
Cc[
"@mozilla.org/browser/nav-bookmarks-service;1"].
86 if (bs.getIdForItemAt(bs.toolbarFolder, 0) == -1) {
88 do_timeout(1000,
"continue_test();");
94 do_check_eq(bs.getItemTitle(itemId),
"examplejson");
do_check_eq(typeof PlacesUtils,"object")
function create_bookmarks_html(aFilename)
const SMART_BOOKMARKS_ON_TOOLBAR
getService(Ci.sbIFaceplateManager)
function create_JSON_backup(aFilename)