Skip test for "recognizePDF without DOI" on Travis-CI
Breaks due to CAPTCHA when tests are run frequently
This commit is contained in:
parent
ac363101fc
commit
f6510419cb
|
@ -210,6 +210,7 @@ Components.utils.import("resource://gre/modules/Services.jsm");
|
||||||
|
|
||||||
if (options) {
|
if (options) {
|
||||||
if (options.openPane) this.openPane = true;
|
if (options.openPane) this.openPane = true;
|
||||||
|
if (options.noUserInput) this.noUserInput = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.mainThread = Components.classes["@mozilla.org/thread-manager;1"].getService().mainThread;
|
this.mainThread = Components.classes["@mozilla.org/thread-manager;1"].getService().mainThread;
|
||||||
|
|
|
@ -447,6 +447,10 @@ ZoteroCommandLineHandler.prototype = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cmdLine.handleFlag("ZoteroNoUserInput", false)) {
|
||||||
|
zInitOptions.noUserInput = true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
contractID: "@mozilla.org/commandlinehandler/general-startup;1?type=zotero",
|
contractID: "@mozilla.org/commandlinehandler/general-startup;1?type=zotero",
|
||||||
|
|
|
@ -77,11 +77,15 @@ user_pref("extensions.zotero.firstRunGuidance", false);
|
||||||
user_pref("extensions.zotero.firstRun2", false);
|
user_pref("extensions.zotero.firstRun2", false);
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# -v flag on Windows makes Firefox process hang
|
||||||
if [ -z $IS_CYGWIN ]; then
|
if [ -z $IS_CYGWIN ]; then
|
||||||
echo "`MOZ_NO_REMOTE=1 NO_EM_RESTART=1 \"$FX_EXECUTABLE\" -v`"
|
echo "`MOZ_NO_REMOTE=1 NO_EM_RESTART=1 \"$FX_EXECUTABLE\" -v`"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$TRAVIS" = true ]; then
|
||||||
|
FX_ARGS="$FX_ARGS --ZoteroNoUserInput"
|
||||||
|
fi
|
||||||
|
|
||||||
makePath FX_PROFILE "$PROFILE"
|
makePath FX_PROFILE "$PROFILE"
|
||||||
MOZ_NO_REMOTE=1 NO_EM_RESTART=1 "$FX_EXECUTABLE" -profile "$FX_PROFILE" \
|
MOZ_NO_REMOTE=1 NO_EM_RESTART=1 "$FX_EXECUTABLE" -profile "$FX_PROFILE" \
|
||||||
-chrome chrome://zotero-unit/content/runtests.html -test "$TESTS" $FX_ARGS
|
-chrome chrome://zotero-unit/content/runtests.html -test "$TESTS" $FX_ARGS
|
||||||
|
|
|
@ -38,6 +38,8 @@ describe("PDF Recognition", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should recognize a PDF without a DOI", function() {
|
it("should recognize a PDF without a DOI", function() {
|
||||||
|
if (Zotero.noUserInput) this.skip(); // CAPTCHAs make this fail
|
||||||
|
|
||||||
this.timeout(30000);
|
this.timeout(30000);
|
||||||
// Import the PDF
|
// Import the PDF
|
||||||
var testdir = getTestDataDirectory();
|
var testdir = getTestDataDirectory();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user