Chromium Code Reviews| Index: tools/testing/dart/test_runner.dart |
| =================================================================== |
| --- tools/testing/dart/test_runner.dart (revision 5794) |
| +++ tools/testing/dart/test_runner.dart (working copy) |
| @@ -124,10 +124,11 @@ |
| int get timeout() => configuration['timeout']; |
| String get configurationString() { |
| - final component = configuration['component']; |
| + final compiler = configuration['compiler']; |
| + final runtime = configuration['runtime']; |
| final mode = configuration['mode']; |
| final arch = configuration['arch']; |
| - return "$component ${mode}_$arch"; |
| + return "$compiler-$runtime ${mode}_$arch"; |
| } |
| List<String> get batchRunnerArguments() => ['-batch']; |
| @@ -135,7 +136,10 @@ |
| void completed() { completedHandler(this); } |
| - bool get usesWebDriver() => configuration['component'] == 'webdriver'; |
| + bool get usesWebDriver() => configuration['runtime'] == 'chrome' || |
| + configuration['runtime'] == 'ff' || configuration['runtime'] == 'safari' |
| + || configuration['runtime'] == 'ie' |
| + || configuration['runtime'] == 'opera'; |
|
Siggi Cherem (dart-lang)
2012/03/23 23:57:33
an alternative suggestion:
bool get usesWebDriver
ahe
2012/03/24 13:56:40
+1
Emily Fortuna
2012/03/26 20:52:32
Done.
|
| } |
| @@ -229,7 +233,7 @@ |
| if (testCase is BrowserTestCase) { |
| return new BrowserTestOutputImpl(testCase, exitCode, timedOut, |
| stdout, stderr, time); |
| - } else if (testCase.configuration['component'] == 'dartc') { |
| + } else if (testCase.configuration['compiler'] == 'dartc') { |
| return new AnalysisTestOutputImpl(testCase, exitCode, timedOut, |
| stdout, stderr, time); |
| } |
| @@ -534,8 +538,8 @@ |
| stdout.add('test.dart: Compilion finished $suffix\n'); |
| if (currentStep == totalSteps - 1 && testCase.usesWebDriver && |
| !testCase.configuration['noBatch']) { |
| - // Note: processQueue will always be non-null for component == webdriver |
| - // (It is only null for component == vm) |
| + // Note: processQueue will always be non-null for runtime == ie, ff, |
| + // safari, chrome, opera. (It is only null for runtime == vm) |
| processQueue._getBatchRunner(testCase).startTest(testCase); |
| } else { |
| runCommand(testCase.commands[currentStep++], stepExitHandler); |
| @@ -1043,14 +1047,14 @@ |
| BatchRunnerProcess _getBatchRunner(TestCase test) { |
| // Start batch processes if needed |
| - var component = test.configuration['component']; |
| - var runners = _batchProcesses[component]; |
| + var compiler = test.configuration['compiler']; |
| + var runners = _batchProcesses[compiler]; |
| if (runners == null) { |
| runners = new List<BatchRunnerProcess>(_maxProcesses); |
| for (int i = 0; i < _maxProcesses; i++) { |
| runners[i] = new BatchRunnerProcess(test); |
| } |
| - _batchProcesses[component] = runners; |
| + _batchProcesses[compiler] = runners; |
| } |
| for (var runner in runners) { |
| @@ -1093,7 +1097,7 @@ |
| oldCallback(test_arg); |
| }; |
| test.completedHandler = wrapper; |
| - if (test.configuration['component'] == 'dartc' && |
| + if (test.configuration['compiler'] == 'dartc' && |
| test.displayName != 'dartc/junit_tests') { |
| _getBatchRunner(test).startTest(test); |
| } else { |