www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit bf3ad6a2a41fd3f9783157f0cfadde5f537a8a55
parent b7ad582d9930a47a740a94332ab59f1b8385a3e1
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu,  5 May 2016 05:26:19 -0400

Fix test breakage from 3ab335a0 and 09c3a95a

Diffstat:
Mchrome/content/zotero/xpcom/sync/syncLocal.js | 2+-
Mtest/tests/itemTreeViewTest.js | 5+++++
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/sync/syncLocal.js b/chrome/content/zotero/xpcom/sync/syncLocal.js @@ -1115,7 +1115,7 @@ Zotero.Sync.Data.Local = { obj.fromJSON(json.data); } if (obj.objectType == 'item' && obj.isImportedAttachment()) { - this._checkAttachmentForDownload(obj, json.data.mtime, options.isNewObject); + yield this._checkAttachmentForDownload(obj, json.data.mtime, options.isNewObject); } obj.version = json.data.version; if (!options.saveAsChanged) { diff --git a/test/tests/itemTreeViewTest.js b/test/tests/itemTreeViewTest.js @@ -159,6 +159,11 @@ describe("Zotero.ItemTreeView", function() { assert.equal(itemsView.rowCount, 1); assert.equal(quicksearch.value, searchString); + + // Clear search + quicksearch.value = ""; + quicksearch.doCommand(); + yield itemsView._refreshPromise; }); it("shouldn't change selection outside of trash if new trashed item is created with skipSelect", function* () {