Fixes #918, Enabling "Show Unfiled Items" or "Show Duplicates" breaks UI

This commit is contained in:
Dan Stillman 2016-03-13 20:31:15 -04:00
parent 4fcf0c3c15
commit 6b509820b3
5 changed files with 60 additions and 36 deletions

View file

@ -22,8 +22,8 @@ describe("Zotero.CollectionTreeView", function() {
Zotero.Prefs.clear('duplicateLibraries');
Zotero.Prefs.clear('unfiledLibraries');
yield cv.refresh();
assert.isTrue(cv.getRowIndexByID("D" + userLibraryID));
assert.isTrue(cv.getRowIndexByID("U" + userLibraryID));
assert.ok(cv.getRowIndexByID("D" + userLibraryID));
assert.ok(cv.getRowIndexByID("U" + userLibraryID));
assert.equal(Zotero.Prefs.get('duplicateLibraries'), "" + userLibraryID);
assert.equal(Zotero.Prefs.get('unfiledLibraries'), "" + userLibraryID);
});