| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #library("test_runner"); | 5 #library("test_runner"); |
| 6 | 6 |
| 7 #import("status_file_parser.dart"); | 7 #import("status_file_parser.dart"); |
| 8 #import("test_progress.dart"); | 8 #import("test_progress.dart"); |
| 9 #import("test_suite.dart"); | 9 #import("test_suite.dart"); |
| 10 | 10 |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 if (_verbose) print(test.commandLine); | 465 if (_verbose) print(test.commandLine); |
| 466 _progress.start(test); | 466 _progress.start(test); |
| 467 Function oldCallback = test.completedHandler; | 467 Function oldCallback = test.completedHandler; |
| 468 Function wrapper = (TestCase test_arg) { | 468 Function wrapper = (TestCase test_arg) { |
| 469 _numProcesses--; | 469 _numProcesses--; |
| 470 _progress.done(test_arg); | 470 _progress.done(test_arg); |
| 471 _tryRunTest(); | 471 _tryRunTest(); |
| 472 oldCallback(test_arg); | 472 oldCallback(test_arg); |
| 473 }; | 473 }; |
| 474 test.completedHandler = wrapper; | 474 test.completedHandler = wrapper; |
| 475 if (test.configuration['component'] == 'dartc') { | 475 if (test.configuration['component'] == 'dartc' && |
| 476 test.displayName != 'dartc/junit_tests') { |
| 476 _ensureDartcBatchRunnersStarted(test.executablePath); | 477 _ensureDartcBatchRunnersStarted(test.executablePath); |
| 477 _getDartcBatchRunnerProcess().startTest(test); | 478 _getDartcBatchRunnerProcess().startTest(test); |
| 478 } else { | 479 } else { |
| 479 new RunningProcess(test).start(); | 480 new RunningProcess(test).start(); |
| 480 } | 481 } |
| 481 _numProcesses++; | 482 _numProcesses++; |
| 482 } | 483 } |
| 483 } | 484 } |
| 484 } | 485 } |
| OLD | NEW |