From 3a9cd31d42a2167df7cf6885ce783d288b218a61 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 27 Nov 2016 19:46:12 -0500 Subject: [PATCH] Travis debugging --- test/content/support.js | 4 ++++ test/tests/dataDirectoryTest.js | 1 + 2 files changed, 5 insertions(+) diff --git a/test/content/support.js b/test/content/support.js index 2bb825aecb..c946444ae6 100644 --- 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 index cb10023c5f..f62cedf0de 100644 --- 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)