зеркало из https://github.com/mozilla/pjs.git
Bug 591071: Recent updates category is hidden if it is the selected category when the add-ons manager is opened. r=Unfocused, a=blocks-final
This commit is contained in:
Родитель
a0d965e27b
Коммит
1c3a7dbcbf
|
@ -1302,8 +1302,11 @@ var gCategories = {
|
|||
}
|
||||
|
||||
if (this.node.selectedItem &&
|
||||
this.node.selectedItem.value == aId)
|
||||
this.node.selectedItem.value == aId) {
|
||||
this.node.selectedItem.hidden = false;
|
||||
this.node.selectedItem.disabled = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (view.type == "search")
|
||||
var item = this._search;
|
||||
|
|
|
@ -84,3 +84,18 @@ add_test(function() {
|
|||
}
|
||||
run_next_test();
|
||||
});
|
||||
|
||||
|
||||
add_test(function() {
|
||||
close_manager(gManagerWindow, function() {
|
||||
open_manager(null, function(aWindow) {
|
||||
gManagerWindow = aWindow;
|
||||
gCategoryUtilities = new CategoryUtilities(gManagerWindow);
|
||||
|
||||
var recentCat = gManagerWindow.gCategories.get("addons://updates/recent");
|
||||
is(gCategoryUtilities.isVisible(recentCat), true, "Recent Updates category should still be visible");
|
||||
|
||||
run_next_test();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче