www

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

commit 94e0e8b752678e4a434493f01433022a7cf8686e
parent b5344119bbe392d1c142f846dff7faa71daf807f
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 22 Jun 2016 06:42:30 -0400

Debugging for zipDirectory() test failure on Travis

Diffstat:
Mchrome/content/zotero/xpcom/file.js | 1+
Mtest/tests/fileTest.js | 8++++++++
2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/file.js b/chrome/content/zotero/xpcom/file.js @@ -746,6 +746,7 @@ Zotero.File = new function(){ return; } + Zotero.debug("Adding ZIP entry " + entry.path); zipWriter.addEntryFile( // Add relative path entry.path.substr(rootPath.length + 1), diff --git a/test/tests/fileTest.js b/test/tests/fileTest.js @@ -71,7 +71,15 @@ describe("Zotero.File", function () { }) describe("#zipDirectory()", function () { + afterEach(function () { + Zotero.Prefs.set('debug.log', false); + Zotero.Debug.init(); + }); + it("should compress a directory recursively", function* () { + Zotero.Prefs.set('debug.log', true); + Zotero.Debug.init(); + var tmpPath = Zotero.getTempDirectory().path; var path = OS.Path.join(tmpPath, Zotero.Utilities.randomString()); yield OS.File.makeDir(path);