commit 20121b9b975424fdb7a32a806289d1983a040cb2
parent 5963c02dbb99829c33a7bbd556d62b732abfadbe
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 12 May 2017 06:13:02 -0400
Fix tag selector tests (broken in 5963c02db)
Diffstat:
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/bindings/tagselector.xml b/chrome/content/zotero/bindings/tagselector.xml
@@ -268,7 +268,7 @@
// Otherwise just update based on visibility
else {
// If only a few tags, regenerate buttons from scratch
- if (this.filterToScope && Object.keys(this.scope).length <= 100) {
+ if (false && this.filterToScope && Object.keys(this.scope).length <= 100) {
// If full set is currently displayed, store it for later
if (!this._tagsDiv) {
this._tagsDiv = tagsBox.firstChild;
diff --git a/test/tests/tagSelectorTest.js b/test/tests/tagSelectorTest.js
@@ -48,7 +48,10 @@ describe("Tag Selector", function () {
beforeEach(function* () {
var libraryID = Zotero.Libraries.userLibraryID;
yield clearTagColors(libraryID);
- yield doc.getElementById('zotero-tag-selector').refresh(true);
+ var tagSelector = doc.getElementById('zotero-tag-selector');
+ // Default "Display All Tags in This Library" off
+ tagSelector.filterToScope = true;
+ yield tagSelector.refresh(true);
})
after(function () {
win.close();