From bf3ad6a2a41fd3f9783157f0cfadde5f537a8a55 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 5 May 2016 05:26:19 -0400 Subject: [PATCH] Fix test breakage from 3ab335a0 and 09c3a95a --- chrome/content/zotero/xpcom/sync/syncLocal.js | 2 +- test/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 index 3c99c538e..baeb6323f 100644 --- 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 index d1e776148..cf34db63d 100644 --- 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* () {