45 let
bg =
Cc[
"@mozilla.org/browser/browserglue;1"].
49 let
bs =
Cc[
"@mozilla.org/browser/nav-bookmarks-service;1"].
53 let
ps =
Cc[
"@mozilla.org/preferences-service;1"].
55 let
os =
Cc[
"@mozilla.org/observer-service;1"].
70 description:
"Import from bookmarks.html if importBookmarksHTML is true.",
81 let itemId =
bs.getIdForItemAt(
bs.toolbarFolder,
94 description:
"import from bookmarks.html, but don't create smart bookmarks if they are disabled",
106 let itemId =
bs.getIdForItemAt(
bs.toolbarFolder, 0);
118 description:
"Import from bookmarks.html, but don't create smart bookmarks if autoExportHTML is true and they are at latest version",
131 let itemId =
bs.getIdForItemAt(
bs.toolbarFolder, 0);
144 description:
"Import from bookmarks.html, and create smart bookmarks if autoExportHTML is true and they are not at latest version.",
169 description:
"restore from default bookmarks.html if restore_default_bookmarks is true.",
180 do_check_true(itemId > 0);
191 description:
"setting both importBookmarksHTML and restore_default_bookmarks should restore defaults.",
203 do_check_true(itemId > 0);
216 os.notifyObservers(
null,
"quit-application-granted",
null);
226 os.notifyObservers(
null,
"quit-application-granted",
null);
234 dump(
"\nTEST " + (++testIndex) +
": " + test.description);
do_check_eq(typeof PlacesUtils,"object")
function create_bookmarks_html(aFilename)
function remove_all_bookmarks()
const SMART_BOOKMARKS_ON_TOOLBAR
getService(Ci.sbIFaceplateManager)
const PREF_RESTORE_DEFAULT_BOOKMARKS
const PREF_SMART_BOOKMARKS_VERSION
const PREF_IMPORT_BOOKMARKS_HTML
function create_JSON_backup(aFilename)
const PREF_AUTO_EXPORT_HTML
const TOPIC_PLACES_INIT_COMPLETE