commit 249521f12bed3cf6181ecf0cd459ca63782143b2
parent aeaa0d12c72e8a1befdb22d8f526c61daacb85b7
Author: Dan Stillman <dstillman@zotero.org>
Date: Sun, 20 Nov 2016 01:40:39 -0500
Enable debugging for Travis error
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/test/tests/zoteroTest.js b/test/tests/zoteroTest.js
@@ -136,6 +136,7 @@ describe("Zotero Core Functions", function () {
});
it("should show error on partial failure", function* () {
+ Zotero.Debug.init(true);
yield populateDataDirectory(oldDir);
let origFunc = OS.File.move;
@@ -149,10 +150,12 @@ describe("Zotero Core Functions", function () {
});
let stub4 = sinon.stub(Zotero.File, "reveal").returns(Zotero.Promise.resolve());
let stub5 = sinon.stub(Zotero.Utilities.Internal, "quitZotero");
-
+
var promise = waitForDialog();
yield Zotero.checkForDataDirectoryMigration(oldDir, newDir);
+ Zotero.debug("Waiting for dialog");
yield promise;
+ Zotero.debug("Done waiting for dialog");
assert.isTrue(stub4.calledTwice);
assert.isTrue(stub4.getCall(0).calledWith(oldStorageDir));