Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: tools/testing/dart/test_options.dart

Issue 8537009: tools/test.dart: Implement --checked option. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix type error. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/standalone/test_config.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 /** 7 /**
8 * Specification of a single test option. 8 * Specification of a single test option.
9 * 9 *
10 * The name of the specification is used as the key for the option in 10 * The name of the specification is used as the key for the option in
11 * the Map returned from the [TestOptionParser] parse method. 11 * the Map returned from the [TestOptionParser] parse method.
12 */ 12 */
13 class _TestOptionSpecification { 13 class _TestOptionSpecification {
14 _TestOptionSpecification(this.name, 14 _TestOptionSpecification(this.name,
15 this.description, 15 this.description,
16 this.keys, 16 this.keys,
17 this.values, 17 this.values,
18 this.defaultValue, 18 this.defaultValue,
19 [this.type = 'string']); 19 [this.type = 'string']);
20 String name; 20 String name;
21 String description; 21 String description;
22 List<String> keys; 22 List<String> keys;
23 List<String> values; 23 List<String> values;
24 String defaultValue; 24 var defaultValue;
25 String type; 25 String type;
26 } 26 }
27 27
28 28
29 /** 29 /**
30 * Parser of test options. 30 * Parser of test options.
31 */ 31 */
32 class TestOptionsParser { 32 class TestOptionsParser {
33 /** 33 /**
34 * Creates a test options parser initialized with the known options. 34 * Creates a test options parser initialized with the known options.
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 if (option.keys.some((key) => key == name)) { 300 if (option.keys.some((key) => key == name)) {
301 return option; 301 return option;
302 } 302 }
303 } 303 }
304 return null; 304 return null;
305 } 305 }
306 306
307 307
308 List<_TestOptionSpecification> _options; 308 List<_TestOptionSpecification> _options;
309 } 309 }
OLDNEW
« no previous file with comments | « tests/standalone/test_config.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698