www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 5947b240dd0bfcfa33c8213b5522c86142e05255
parent bfa8786fb4f58df54a48acceaff73561d298249c
Author: Simon Kornblith <simon@simonster.com>
Date:   Sat, 18 Jun 2011 17:09:15 +0000

Test up to 6 translators concurrently


Diffstat:
Mchrome/content/zotero/tools/testTranslators/testTranslators.js | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/tools/testTranslators/testTranslators.js b/chrome/content/zotero/tools/testTranslators/testTranslators.js @@ -23,6 +23,7 @@ ***** END LICENSE BLOCK ***** */ +const NUM_CONCURRENT_TESTS = 6; const TRANSLATOR_TYPES = ["Web", "Import", "Export", "Search"]; const TABLE_COLUMNS = ["Translator", "Supported", "Status", "Pending", "Succeeded", "Failed", "Unknown"]; var translatorTables = {}; @@ -74,7 +75,7 @@ var TranslatorTestView = function(translator, type) { translatorTables[type].appendChild(row); // create translator tester and update status based on what it knows - this._translatorTester = new Zotero.TranslatorTester(translator, type); + this._translatorTester = new Zotero_TranslatorTester(translator, type); this.updateStatus(this._translatorTester); this.hasTests = !!this._translatorTester.tests.length; } @@ -185,7 +186,9 @@ function haveTranslators(translators, type) { } } - runTranslatorTests(type); + for(var i=0; i<NUM_CONCURRENT_TESTS; i++) { + runTranslatorTests(type); + } } /**