Skip to content

Commit

Permalink
Zotero.setTimeout()setTimeout() in translator tester
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed Jun 1, 2023
1 parent 05755f5 commit de2e270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testTranslators/translatorTester.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,12 @@ Zotero_TranslatorTester.prototype._runTestsRecursively = function(testDoneCallba
if(this.type === "web") {
this.fetchPageAndRunTest(test, callback);
} else {
(Zotero.setTimeout ? Zotero : window).setTimeout(function() {
setTimeout(function() {
me.runTest(test, null, callback);
}, 0);
}

(Zotero.setTimeout ? Zotero : window).setTimeout(function() {
setTimeout(function() {
callback(me, test, "failed", "Test timed out after "+TEST_RUN_TIMEOUT/1000+" seconds");
}, TEST_RUN_TIMEOUT);
};
Expand Down

0 comments on commit de2e270

Please sign in to comment.