Fix a broken item tree test (since b05e22fa
)
This commit is contained in:
parent
7019544b48
commit
b47f5f51e7
1 changed files with 3 additions and 1 deletions
|
@ -62,7 +62,9 @@ describe("Zotero.ItemTree", function() {
|
||||||
it("should expand collapsed parents with matching children when issuing a Select All command", async function () {
|
it("should expand collapsed parents with matching children when issuing a Select All command", async function () {
|
||||||
itemsView.collapseAllRows();
|
itemsView.collapseAllRows();
|
||||||
var selected = itemsView.getSelectedItems(true);
|
var selected = itemsView.getSelectedItems(true);
|
||||||
assert.lengthOf(selected, 0);
|
// After collapse the parent item is selected
|
||||||
|
assert.lengthOf(selected, 1);
|
||||||
|
assert.equal(selected[0], parentItem.id);
|
||||||
|
|
||||||
itemsView.tree._onKeyDown(selectAllEvent);
|
itemsView.tree._onKeyDown(selectAllEvent);
|
||||||
selected = itemsView.getSelectedItems(true);
|
selected = itemsView.getSelectedItems(true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue