| 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 #import("dart:io"); | 7 #import("dart:io"); |
| 8 | 8 |
| 9 List<String> defaultTestSelectors = | 9 List<String> defaultTestSelectors = |
| 10 const ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language', | 10 const ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language', |
| 11 'isolate', 'stub-generator', 'vm', 'client', 'dartdoc']; | 11 'isolate', 'stub-generator', 'vm', 'client', 'dartdoc', 'utils']; |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * Specification of a single test option. | 14 * Specification of a single test option. |
| 15 * | 15 * |
| 16 * The name of the specification is used as the key for the option in | 16 * The name of the specification is used as the key for the option in |
| 17 * the Map returned from the [TestOptionParser] parse method. | 17 * the Map returned from the [TestOptionParser] parse method. |
| 18 */ | 18 */ |
| 19 class _TestOptionSpecification { | 19 class _TestOptionSpecification { |
| 20 _TestOptionSpecification(this.name, | 20 _TestOptionSpecification(this.name, |
| 21 this.description, | 21 this.description, |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 ['-b', '--browser'], | 166 ['-b', '--browser'], |
| 167 ['ff', 'chrome', 'safari', 'ie'], | 167 ['ff', 'chrome', 'safari', 'ie'], |
| 168 'chrome'), | 168 'chrome'), |
| 169 new _TestOptionSpecification( | 169 new _TestOptionSpecification( |
| 170 'frog', | 170 'frog', |
| 171 'Path to frog executable', | 171 'Path to frog executable', |
| 172 ['--frog'], | 172 ['--frog'], |
| 173 [], | 173 [], |
| 174 ''), | 174 ''), |
| 175 new _TestOptionSpecification( | 175 new _TestOptionSpecification( |
| 176 'drt', |
| 177 'Path to DumpRenderTree executable', |
| 178 ['--drt'], |
| 179 [], |
| 180 ''), |
| 181 new _TestOptionSpecification( |
| 176 'froglib', | 182 'froglib', |
| 177 'Path to frog library', | 183 'Path to frog library', |
| 178 ['--froglib'], | 184 ['--froglib'], |
| 179 [], | 185 [], |
| 180 '')]; | 186 '')]; |
| 181 } | 187 } |
| 182 | 188 |
| 183 | 189 |
| 184 /** | 190 /** |
| 185 * Parse a list of strings as test options. | 191 * Parse a list of strings as test options. |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 return option; | 486 return option; |
| 481 } | 487 } |
| 482 } | 488 } |
| 483 print('Unknown test option $name'); | 489 print('Unknown test option $name'); |
| 484 exit(1); | 490 exit(1); |
| 485 } | 491 } |
| 486 | 492 |
| 487 | 493 |
| 488 List<_TestOptionSpecification> _options; | 494 List<_TestOptionSpecification> _options; |
| 489 } | 495 } |
| OLD | NEW |