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( | |
Bill Hesse
2012/01/11 20:50:37
Nothing is using --flag anymore, then, and nothing
Emily Fortuna
2012/01/11 21:07:03
Yes, we still need it for frog/frog-lib.
On 2012/
Emily Fortuna
2012/01/11 23:05:00
That's fine. Just keep me posted on what you decid
| |
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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
448 if (option.keys.some((key) => key == name)) { | 454 if (option.keys.some((key) => key == name)) { |
449 return option; | 455 return option; |
450 } | 456 } |
451 } | 457 } |
452 return null; | 458 return null; |
453 } | 459 } |
454 | 460 |
455 | 461 |
456 List<_TestOptionSpecification> _options; | 462 List<_TestOptionSpecification> _options; |
457 } | 463 } |
OLD | NEW |