53 let
os =
Cc[
"@mozilla.org/observer-service;1"].
60 do_timeout(0,
"continue_test();");
68 let distroDir =
dirSvc.get(
"XCurProcD",
Ci.nsIFile);
69 distroDir.append(
"distribution");
70 let iniFile = distroDir.clone();
71 iniFile.append(
"distribution.ini");
72 if (iniFile.exists()) {
73 iniFile.remove(
false);
74 print(
"distribution.ini already exists, did some test forget to cleanup?");
77 let testDistributionFile =
gTestDir.clone();
78 testDistributionFile.append(
"distribution.ini");
79 testDistributionFile.copyTo(distroDir,
"distribution.ini");
80 do_check_true(testDistributionFile.exists());
83 let
ps =
Cc[
"@mozilla.org/preferences-service;1"].
89 let
hs =
Cc[
"@mozilla.org/browser/nav-history-service;1"].
93 do_check_eq(hs.databaseStatus, hs.DATABASE_STATUS_CREATE);
96 Cc[
"@mozilla.org/browser/browserglue;1"].getService(
Ci.nsIBrowserGlue);
108 let
bs =
Cc[
"@mozilla.org/browser/nav-bookmarks-service;1"].
112 let menuItemId = bs.getIdForItemAt(bs.bookmarksMenuFolder, 0);
113 do_check_neq(menuItemId, -1);
114 do_check_eq(bs.getItemTitle(menuItemId),
"Menu Link Before");
116 do_check_neq(menuItemId, -1);
117 do_check_eq(bs.getItemTitle(menuItemId),
"Menu Link After");
120 let toolbarItemId = bs.getIdForItemAt(bs.toolbarFolder, 0);
121 do_check_neq(toolbarItemId, -1);
122 do_check_eq(bs.getItemTitle(toolbarItemId),
"Toolbar Link Before");
124 do_check_neq(toolbarItemId, -1);
125 do_check_eq(bs.getItemTitle(toolbarItemId),
"Toolbar Link After");
128 let
ps =
Cc[
"@mozilla.org/preferences-service;1"].
141 let iniFile =
dirSvc.get(
"XCurProcD",
Ci.nsIFile);
142 iniFile.append(
"distribution");
143 iniFile.append(
"distribution.ini");
144 iniFile.remove(
false);
145 do_check_false(iniFile.exists());
do_check_eq(typeof PlacesUtils,"object")
const PREF_SMART_BOOKMARKS_VERSION
const DEFAULT_BOOKMARKS_ON_TOOLBAR
const PREF_DISTRIBUTION_ID
do_register_cleanup(function(){let iniFile=dirSvc.get("XCurProcD", Ci.nsIFile);iniFile.append("distribution");iniFile.append("distribution.ini");iniFile.remove(false);do_check_false(iniFile.exists());})
const DEFAULT_BOOKMARKS_ON_MENU
getService(Ci.sbIFaceplateManager)
const TOPIC_CUSTOMIZATION_COMPLETE
const TOPIC_PLACES_INIT_COMPLETE
const TOPIC_FINAL_UI_STARTUP
_updateTextAndScrollDataForFrame aData
sbDeviceFirmwareAutoCheckForUpdate prototype observe