| 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 List<String> defaultTestSelectors = | 7 List<String> defaultTestSelectors = |
| 8 const ['samples', 'standalone', 'corelib', 'co19', 'language', | 8 const ['samples', 'standalone', 'corelib', 'co19', 'language', |
| 9 'isolate', 'stub-generator', 'vm']; | 9 'isolate', 'stub-generator', 'vm']; |
| 10 | 10 |
| 11 /** | 11 /** |
| 12 * Specification of a single test option. | 12 * Specification of a single test option. |
| 13 * | 13 * |
| 14 * The name of the specification is used as the key for the option in | 14 * The name of the specification is used as the key for the option in |
| 15 * the Map returned from the [TestOptionParser] parse method. | 15 * the Map returned from the [TestOptionParser] parse method. |
| 16 */ | 16 */ |
| 17 class _TestOptionSpecification { | 17 class _TestOptionSpecification { |
| 18 _TestOptionSpecification(this.name, | 18 _TestOptionSpecification(this.name, |
| 19 this.description, | 19 this.description, |
| 20 this.keys, | 20 this.keys, |
| 21 this.values, | 21 this.values, |
| 22 this.defaultValue, | 22 this.defaultValue, |
| 23 [this.type = 'string']); | 23 [type = 'string']) : this.type = type; |
| 24 String name; | 24 String name; |
| 25 String description; | 25 String description; |
| 26 List<String> keys; | 26 List<String> keys; |
| 27 List<String> values; | 27 List<String> values; |
| 28 var defaultValue; | 28 var defaultValue; |
| 29 String type; | 29 String type; |
| 30 } | 30 } |
| 31 | 31 |
| 32 | 32 |
| 33 /** | 33 /** |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 if (option.keys.some((key) => key == name)) { | 341 if (option.keys.some((key) => key == name)) { |
| 342 return option; | 342 return option; |
| 343 } | 343 } |
| 344 } | 344 } |
| 345 return null; | 345 return null; |
| 346 } | 346 } |
| 347 | 347 |
| 348 | 348 |
| 349 List<_TestOptionSpecification> _options; | 349 List<_TestOptionSpecification> _options; |
| 350 } | 350 } |
| OLD | NEW |