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_options_parser"); | 5 #library("test_options_parser"); |
6 | 6 |
7 #import("dart:io"); | 7 #import("dart:io"); |
8 | 8 |
9 List<String> defaultTestSelectors = | 9 List<String> defaultTestSelectors = |
10 const ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language', | 10 const ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language', |
11 'isolate', 'stub-generator', 'vm', 'client', 'dartdoc', 'utils']; | 11 'isolate', 'vm', 'client', 'dartdoc', 'utils']; |
12 | 12 |
13 /** | 13 /** |
14 * Specification of a single test option. | 14 * Specification of a single test option. |
15 * | 15 * |
16 * The name of the specification is used as the key for the option in | 16 * The name of the specification is used as the key for the option in |
17 * the Map returned from the [TestOptionParser] parse method. | 17 * the Map returned from the [TestOptionParser] parse method. |
18 */ | 18 */ |
19 class _TestOptionSpecification { | 19 class _TestOptionSpecification { |
20 _TestOptionSpecification(this.name, | 20 _TestOptionSpecification(this.name, |
21 this.description, | 21 this.description, |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 return option; | 495 return option; |
496 } | 496 } |
497 } | 497 } |
498 print('Unknown test option $name'); | 498 print('Unknown test option $name'); |
499 exit(1); | 499 exit(1); |
500 } | 500 } |
501 | 501 |
502 | 502 |
503 List<_TestOptionSpecification> _options; | 503 List<_TestOptionSpecification> _options; |
504 } | 504 } |
OLD | NEW |