| OLD | NEW |
| 1 #!/usr/bin/env dart | 1 #!/usr/bin/env dart |
| 2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 3 // for details. All rights reserved. Use of this source code is governed by a | 3 // for details. All rights reserved. Use of this source code is governed by a |
| 4 // BSD-style license that can be found in the LICENSE file. | 4 // BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 /** | 6 /** |
| 7 * This file is the entrypoint of the dart test suite. This suite is used | 7 * This file is the entrypoint of the dart test suite. This suite is used |
| 8 * to test: | 8 * to test: |
| 9 * | 9 * |
| 10 * 1. the dart vm | 10 * 1. the dart vm |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 } catch (error) { | 275 } catch (error) { |
| 276 DebugLogger.error(error); | 276 DebugLogger.error(error); |
| 277 } | 277 } |
| 278 }, onDone: completer.complete); | 278 }, onDone: completer.complete); |
| 279 } else { | 279 } else { |
| 280 completer.complete(); | 280 completer.complete(); |
| 281 } | 281 } |
| 282 return completer.future; | 282 return completer.future; |
| 283 } | 283 } |
| 284 | 284 |
| 285 void main() { | 285 void main(List<String> arguments) { |
| 286 deleteTemporaryDartDirectories().then((_) { | 286 deleteTemporaryDartDirectories().then((_) { |
| 287 var optionsParser = new TestOptionsParser(); | 287 var optionsParser = new TestOptionsParser(); |
| 288 var configurations = optionsParser.parse(new Options().arguments); | 288 var configurations = optionsParser.parse(arguments); |
| 289 if (configurations != null && configurations.length > 0) { | 289 if (configurations != null && configurations.length > 0) { |
| 290 testConfigurations(configurations); | 290 testConfigurations(configurations); |
| 291 } | 291 } |
| 292 }); | 292 }); |
| 293 } | 293 } |
| 294 | 294 |
| OLD | NEW |