Fix reselection of trash after restart
This commit is contained in:
parent
dd52206b37
commit
6933f64616
2 changed files with 19 additions and 16 deletions
|
@ -56,6 +56,16 @@ describe("Zotero.CollectionTreeView", function() {
|
|||
})
|
||||
})
|
||||
|
||||
describe("#selectByID", function () {
|
||||
it("should select the trash", function* () {
|
||||
yield collectionsView.selectByID("T1");
|
||||
var row = collectionsView.selection.currentIndex;
|
||||
var treeRow = collectionsView.getRow(row);
|
||||
assert.ok(treeRow.isTrash());
|
||||
assert.equal(treeRow.ref.libraryID, Zotero.Libraries.userLibraryID);
|
||||
})
|
||||
})
|
||||
|
||||
describe("#notify()", function () {
|
||||
it("should select a new collection", function* () {
|
||||
// Create collection
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue