| 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', 'client', 'dartdoc']; | 9 'isolate', 'stub-generator', 'vm', 'client', 'dartdoc']; |
| 10 | 10 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 [], | 151 [], |
| 152 false, | 152 false, |
| 153 'bool'), | 153 'bool'), |
| 154 new _TestOptionSpecification( | 154 new _TestOptionSpecification( |
| 155 'browser', | 155 'browser', |
| 156 'Web browser to use on webdriver tests', | 156 'Web browser to use on webdriver tests', |
| 157 ['-b', '--browser'], | 157 ['-b', '--browser'], |
| 158 ['ff', 'chrome', 'safari', 'ie'], | 158 ['ff', 'chrome', 'safari', 'ie'], |
| 159 'chrome'), | 159 'chrome'), |
| 160 new _TestOptionSpecification( | 160 new _TestOptionSpecification( |
| 161 'flag', | 161 'frog', |
| 162 'Component-specific extra flags, comma separated', | 162 'Path to frog executable', |
| 163 ['--flag'], | 163 ['--frog'], |
| 164 [], |
| 165 ''), |
| 166 new _TestOptionSpecification( |
| 167 'froglib', |
| 168 'Path to frog library', |
| 169 ['--froglib'], |
| 164 [], | 170 [], |
| 165 '')]; | 171 '')]; |
| 166 } | 172 } |
| 167 | 173 |
| 168 | 174 |
| 169 /** | 175 /** |
| 170 * Parse a list of strings as test options. | 176 * Parse a list of strings as test options. |
| 171 * | 177 * |
| 172 * Returns a list of configurations in which to run the | 178 * Returns a list of configurations in which to run the |
| 173 * tests. Configurations are maps mapping from option keys to | 179 * tests. Configurations are maps mapping from option keys to |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 return option; | 471 return option; |
| 466 } | 472 } |
| 467 } | 473 } |
| 468 print('Unknown test option $name'); | 474 print('Unknown test option $name'); |
| 469 exit(1); | 475 exit(1); |
| 470 } | 476 } |
| 471 | 477 |
| 472 | 478 |
| 473 List<_TestOptionSpecification> _options; | 479 List<_TestOptionSpecification> _options; |
| 474 } | 480 } |
| OLD | NEW |