Remove Travis debugging

This commit is contained in:
Dan Stillman 2016-11-27 20:02:53 -05:00
parent 45a8178fe0
commit a735d5dd41
4 changed files with 2 additions and 17 deletions

View file

@ -616,8 +616,6 @@ Zotero.DataDirectory = {
}
// At least the database was copied, but other things failed
Zotero.debug(1);
Zotero.debug(errors);
if (errors.length) {
let ps = Services.prompt;
let buttonFlags = (ps.BUTTON_POS_0) * (ps.BUTTON_TITLE_IS_STRING)
@ -672,7 +670,6 @@ Zotero.DataDirectory = {
return;
}
}
Zotero.debug(2);
}),

View file

@ -136,10 +136,6 @@ 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

@ -143,11 +143,8 @@ fi
trap "{ rm -rf \"$TEMPDIR\"; }" EXIT
makePath FX_PROFILE "$PROFILE"
# Temp
#MOZ_NO_REMOTE=1 NO_EM_RESTART=1 "$FX_EXECUTABLE" -profile "$FX_PROFILE" \
# -chrome chrome://zotero-unit/content/runtests.html -test "$TESTS" -grep "$GREP" -ZoteroTest $FX_ARGS
MOZ_NO_REMOTE=1 NO_EM_RESTART=1 "$FX_EXECUTABLE" -profile "$FX_PROFILE" -bail \
-chrome chrome://zotero-unit/content/runtests.html -test dataDirectory -grep "$GREP" -ZoteroTest $FX_ARGS
MOZ_NO_REMOTE=1 NO_EM_RESTART=1 "$FX_EXECUTABLE" -profile "$FX_PROFILE" \
-chrome chrome://zotero-unit/content/runtests.html -test "$TESTS" -grep "$GREP" -ZoteroTest $FX_ARGS
# Check for success
test -e "$PROFILE/success"

View file

@ -145,9 +145,6 @@ describe("Zotero.DataDirectory", function () {
before(function () {
disableCommandMode();
// Travis debugging
Zotero.Debug.init(true);
});
after(function () {
@ -185,7 +182,6 @@ 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)
@ -199,7 +195,6 @@ describe("Zotero.DataDirectory", function () {
);
});
yield Zotero.DataDirectory.checkForMigration(oldDir, newDir);
Zotero.debug("Before promise 1");
yield promise;
yield promise2;