mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1704026 - Adjust Add/Edit bookmark strings. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D112106
This commit is contained in:
parent
61dd9a487a
commit
f2483b1e23
@ -147,16 +147,14 @@ var BookmarkPropertiesPanel = {
|
||||
return this._strings.getString("dialogTitleAddMulti");
|
||||
}
|
||||
|
||||
return this._strings.getString("dialogTitleAddBookmarksFolder");
|
||||
return this._strings.getString("dialogTitleAddBookmarkFolder");
|
||||
}
|
||||
if (this._action == ACTION_EDIT) {
|
||||
if (this._itemType === BOOKMARK_ITEM) {
|
||||
return this._strings.getFormattedString("dialogTitleEditBookmark", [
|
||||
this._title,
|
||||
]);
|
||||
return this._strings.getString("dialogTitleEditBookmark2");
|
||||
}
|
||||
|
||||
return this._strings.getString("dialogTitleEditBookmarksFolder");
|
||||
return this._strings.getString("dialogTitleEditBookmarkFolder");
|
||||
}
|
||||
return "";
|
||||
},
|
||||
|
@ -128,10 +128,17 @@ add_task(async function test_change_title_from_Toolbar() {
|
||||
let namepicker = dialogWin.document.getElementById(
|
||||
"editBMPanel_namePicker"
|
||||
);
|
||||
Assert.ok(
|
||||
dialogWin.document.title.includes(titleAfterFirstUpdate),
|
||||
"Dialog window title should include bookmark title."
|
||||
|
||||
let editBookmarkDialogTitle = dialogWin.document.getElementById(
|
||||
"titleText"
|
||||
);
|
||||
let bundle = dialogWin.document.getElementById("stringBundle");
|
||||
|
||||
Assert.equal(
|
||||
bundle.getString("dialogTitleEditBookmark2"),
|
||||
editBookmarkDialogTitle.textContent
|
||||
);
|
||||
|
||||
Assert.equal(
|
||||
namepicker.value,
|
||||
titleAfterFirstUpdate,
|
||||
|
@ -12,8 +12,11 @@ dialogTitleAddMulti=New Bookmarks
|
||||
dialogTitleEdit=Properties for “%S”
|
||||
dialogTitleAddNewBookmark2=Add bookmark
|
||||
dialogTitleEditBookmark=Edit “%S”
|
||||
dialogTitleEditBookmark2=Edit bookmark
|
||||
dialogTitleAddBookmarksFolder=Add bookmarks folder
|
||||
dialogTitleAddBookmarkFolder=Add bookmark folder
|
||||
dialogTitleEditBookmarksFolder=Edit bookmarks folder
|
||||
dialogTitleEditBookmarkFolder=Edit bookmark folder
|
||||
|
||||
bookmarkAllTabsDefault=[Folder Name]
|
||||
newFolderDefault=New Folder
|
||||
|
Loading…
Reference in New Issue
Block a user