Avoid stack overflow in tests

This commit is contained in:
Simon Kornblith 2013-04-16 23:31:23 -04:00
parent e893472331
commit deca49c433

View file

@ -334,7 +334,9 @@ Zotero_TranslatorTester.prototype._runTestsRecursively = function(testDoneCallba
if(this.type === "web") {
this.fetchPageAndRunTest(test, callback);
} else {
(Zotero.setTimeout ? Zotero : window).setTimeout(function() {
this.runTest(test, null, callback);
}, 0);
}
(Zotero.setTimeout ? Zotero : window).setTimeout(function() {