Use Zotero.setTimeout when possible
This commit is contained in:
parent
b5d236fc9d
commit
a27f7259ec
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ Zotero_TranslatorTester.prototype._runTestsRecursively = function(testDoneCallba
|
|||
this.runTest(test, null, callback);
|
||||
}
|
||||
|
||||
window.setTimeout(function() {
|
||||
(Zotero.setTimeout ? Zotero : window).setTimeout(function() {
|
||||
callback(me, test, "failed", "Test timed out after "+TEST_RUN_TIMEOUT+" seconds");
|
||||
}, TEST_RUN_TIMEOUT);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue