Travis debugging

This commit is contained in:
Dan Stillman 2016-11-27 19:46:12 -05:00
parent a6cfe6cd9a
commit 3a9cd31d42
2 changed files with 5 additions and 0 deletions

View file

@ -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 () {

View file

@ -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)