43 var
ww =
Cc[
"@mozilla.org/embedcomp/window-watcher;1"].
54 if (aTopic ===
"domwindowopened") {
55 ww.unregisterNotification(
this);
56 var organizer = aSubject.QueryInterface(
Ci.nsIDOMWindow);
57 organizer.addEventListener(
"load",
function onLoad(
event) {
58 organizer.removeEventListener(
"load",
onLoad,
false);
59 executeSoon(
function () {
63 is(PlacesUtils.bookmarks.getItemTitle(query.itemId),
64 query.correctTitle,
"Title is correct for query " + query.name);
80 ok(PlacesUtils,
"PlacesUtils is running in chrome context");
81 ok(
PlacesUIUtils,
"PlacesUIUtils is running in chrome context");
86 ok(
PlacesUIUtils.leftPaneFolderId > 0,
"left pane folder is initialized");
89 var leftPaneItems = PlacesUtils.annotations
92 is(leftPaneItems.length, 1,
"We correctly have only 1 left pane folder");
94 var
version = PlacesUtils.annotations
95 .getItemAnnotation(leftPaneItems[0],
100 var items = PlacesUtils.annotations
103 for (var
i = 0;
i < items.length;
i++) {
104 var itemId = items[
i];
105 var queryName = PlacesUtils.annotations
106 .getItemAnnotation(items[
i],
110 correctTitle: PlacesUtils.bookmarks
111 .getItemTitle(itemId) });
113 PlacesUtils.bookmarks.setItemTitle(itemId,
"badName");
119 "chrome://browser/content/places/places.xul",
121 "chrome,toolbar=yes,dialog=no,resizable",
const ORGANIZER_QUERY_ANNO
const ORGANIZER_LEFTPANE_VERSION
getService(Ci.sbIFaceplateManager)
const ORGANIZER_FOLDER_ANNO
_getSelectedPageStyle s i
_updateTextAndScrollDataForFrame aData
sbDeviceFirmwareAutoCheckForUpdate prototype observe