| 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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 if (_verbose) print(test.commandLine); | 397 if (_verbose) print(test.commandLine); |
| 398 _progress.start(test); | 398 _progress.start(test); |
| 399 Function oldCallback = test.completedHandler; | 399 Function oldCallback = test.completedHandler; |
| 400 Function wrapper = (TestCase test_arg) { | 400 Function wrapper = (TestCase test_arg) { |
| 401 _numProcesses--; | 401 _numProcesses--; |
| 402 _progress.done(test_arg); | 402 _progress.done(test_arg); |
| 403 _tryRunTest(); | 403 _tryRunTest(); |
| 404 oldCallback(test_arg); | 404 oldCallback(test_arg); |
| 405 }; | 405 }; |
| 406 test.completedHandler = wrapper; | 406 test.completedHandler = wrapper; |
| 407 if (test.executablePath.contains('compiler')) { | 407 if (test.configuration['component'] == 'dartc') { |
| 408 _ensureDartcBatchRunnersStarted(test.executablePath); | 408 _ensureDartcBatchRunnersStarted(test.executablePath); |
| 409 _getDartcBatchRunnerProcess().startTest(test); | 409 _getDartcBatchRunnerProcess().startTest(test); |
| 410 } else { | 410 } else { |
| 411 new RunningProcess(test).start(); | 411 new RunningProcess(test).start(); |
| 412 } | 412 } |
| 413 _numProcesses++; | 413 _numProcesses++; |
| 414 } | 414 } |
| 415 } | 415 } |
| 416 } | 416 } |
| OLD | NEW |