commit 3a9cd31d42a2167df7cf6885ce783d288b218a61
parent a6cfe6cd9a8c6b7de1c3baca9690078a7da377b1
Author: Dan Stillman <dstillman@zotero.org>
Date: Sun, 27 Nov 2016 19:46:12 -0500
Travis debugging
Diffstat:
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/test/content/support.js b/test/content/support.js
@@ -136,6 +136,10 @@ function waitForDialog(onOpen, button='accept', url) {
else if (button != 'cancel') {
let deferred = Zotero.Promise.defer();
function acceptWhenEnabled() {
+ Zotero.debug('=====');
+ Zotero.debug(button);
+ Zotero.debug(dialog.document.documentElement.getButton(button));
+
// Handle delayed buttons
if (dialog.document.documentElement.getButton(button).disabled) {
dialog.setTimeout(function () {
diff --git a/test/tests/dataDirectoryTest.js b/test/tests/dataDirectoryTest.js
@@ -185,6 +185,7 @@ describe("Zotero.DataDirectory", function () {
var promise2;
// Click "Try Again" the first time, and then "Show Directories and Quit Zotero"
var promise = waitForDialog(function (dialog) {
+ Zotero.debug("In first dialog");
promise2 = waitForDialog(null, 'extra1');
// Make sure we're displaying the right message for this mode (automatic or manual)