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']; | 9 'isolate', 'stub-generator', 'vm', 'client']; |
10 | 10 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 [], | 145 [], |
146 ''), | 146 ''), |
147 new _TestOptionSpecification( | 147 new _TestOptionSpecification( |
148 'time', | 148 'time', |
149 'Print timing information after running tests', | 149 'Print timing information after running tests', |
150 ['--time'], | 150 ['--time'], |
151 [], | 151 [], |
152 false, | 152 false, |
153 'bool'), | 153 'bool'), |
154 new _TestOptionSpecification( | 154 new _TestOptionSpecification( |
| 155 'browser', |
| 156 'Web browser to use on webdriver tests', |
| 157 ['-b', '--browser'], |
| 158 ['ff', 'chrome', 'safari', 'ie'], |
| 159 'chrome'), |
| 160 new _TestOptionSpecification( |
155 'flag', | 161 'flag', |
156 'Component-specific extra flags, comma separated', | 162 'Component-specific extra flags, comma separated', |
157 ['--flag'], | 163 ['--flag'], |
158 [], | 164 [], |
159 '')]; | 165 '')]; |
160 } | 166 } |
161 | 167 |
162 | 168 |
163 /** | 169 /** |
164 * Parse a list of strings as test options. | 170 * Parse a list of strings as test options. |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 return option; | 465 return option; |
460 } | 466 } |
461 } | 467 } |
462 print('Unknown test option $name'); | 468 print('Unknown test option $name'); |
463 exit(1); | 469 exit(1); |
464 } | 470 } |
465 | 471 |
466 | 472 |
467 List<_TestOptionSpecification> _options; | 473 List<_TestOptionSpecification> _options; |
468 } | 474 } |
OLD | NEW |