| 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 ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language', | 8 const ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language', |
| 9 'isolate', 'stub-generator', 'vm']; | 9 'isolate', 'stub-generator', 'vm']; |
| 10 | 10 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 false, | 118 false, |
| 119 'bool'), | 119 'bool'), |
| 120 new _TestOptionSpecification( | 120 new _TestOptionSpecification( |
| 121 'verbose', | 121 'verbose', |
| 122 'Verbose output', | 122 'Verbose output', |
| 123 ['-v', '--verbose'], | 123 ['-v', '--verbose'], |
| 124 [], | 124 [], |
| 125 false, | 125 false, |
| 126 'bool'), | 126 'bool'), |
| 127 new _TestOptionSpecification( | 127 new _TestOptionSpecification( |
| 128 'list', |
| 129 'List tests only, do not run them', |
| 130 ['--list'], |
| 131 [], |
| 132 false, |
| 133 'bool'), |
| 134 new _TestOptionSpecification( |
| 128 'valgrind', | 135 'valgrind', |
| 129 'Run tests through valgrind', | 136 'Run tests through valgrind', |
| 130 ['--valgrind'], | 137 ['--valgrind'], |
| 131 [], | 138 [], |
| 132 false, | 139 false, |
| 133 'bool'), | 140 'bool'), |
| 134 new _TestOptionSpecification( | 141 new _TestOptionSpecification( |
| 135 'special-command', | 142 'special-command', |
| 136 specialCommandHelp, | 143 specialCommandHelp, |
| 137 ['--special-command'], | 144 ['--special-command'], |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 if (option.keys.some((key) => key == name)) { | 432 if (option.keys.some((key) => key == name)) { |
| 426 return option; | 433 return option; |
| 427 } | 434 } |
| 428 } | 435 } |
| 429 return null; | 436 return null; |
| 430 } | 437 } |
| 431 | 438 |
| 432 | 439 |
| 433 List<_TestOptionSpecification> _options; | 440 List<_TestOptionSpecification> _options; |
| 434 } | 441 } |
| OLD | NEW |