Use Zotero.setTimeout when possible

This commit is contained in:
Simon Kornblith 2012-02-20 04:46:34 -05:00
parent b5d236fc9d
commit a27f7259ec

View file

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