www

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

commit 995bc9667b99563d06985e199e29aafff3942ae8
parent d122323dbf37511b10a050655be42546f55820f3
Author: Aurimas Vinckevicius <aurimas.dev@gmail.com>
Date:   Fri, 18 Sep 2015 02:20:56 -0500

Open a window for syncRunner tests
For some reason setTimeout in waitForWindow sometimes does not fire without a window open.

Diffstat:
Mtest/tests/syncRunnerTest.js | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/test/tests/syncRunnerTest.js b/test/tests/syncRunnerTest.js @@ -148,9 +148,11 @@ describe("Zotero.Sync.Runner", function () { // // Tests // - before(function () { + let win; + before(function* () { userLibraryID = Zotero.Libraries.userLibraryID; publicationsLibraryID = Zotero.Libraries.publicationsLibraryID; + win = yield loadBrowserWindow(); }) beforeEach(function* () { Zotero.HTTP.mock = sinon.FakeXMLHttpRequest; @@ -169,6 +171,9 @@ describe("Zotero.Sync.Runner", function () { }) after(function () { Zotero.HTTP.mock = null; + if (win) { + win.close(); + } }) describe("#checkAccess()", function () {