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

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

Issue 9178022: Fix test.dart to have the same behavior as test.py for --frog and --froglib. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 months 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 | « no previous file | tools/testing/dart/test_suite.dart » ('j') | tools/testing/dart/test_suite.dart » ('J')
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 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | tools/testing/dart/test_suite.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698