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

Side by Side Diff: utils/testrunner/options.dart

Issue 15755017: Switch from DRT to content shell. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « utils/apidoc/mdn/extractRunner.js ('k') | utils/testrunner/testrunner.dart » ('j') | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of testrunner; 5 part of testrunner;
6 6
7 /** Create and return an options parser for the test runner. */ 7 /** Create and return an options parser for the test runner. */
8 ArgParser getOptionParser() { 8 ArgParser getOptionParser() {
9 var parser = new ArgParser(); 9 var parser = new ArgParser();
10 10
11 parser.addOption('help', abbr: '?', 11 parser.addOption('help', abbr: '?',
12 help: 'Show usage information.'); 12 help: 'Show usage information.');
13 13
14 parser.addOption('runtime', abbr: 'r', defaultsTo: 'vm', 14 parser.addOption('runtime', abbr: 'r', defaultsTo: 'vm',
15 help: 'Where the tests should be run.', 15 help: 'Where the tests should be run.',
16 allowed: ['vm', 'drt-dart', 'drt-js'], 16 allowed: ['vm', 'drt-dart', 'drt-js'],
17 allowedHelp: { 17 allowedHelp: {
18 'vm': 'Run Dart code natively on the standalone dart vm.', 18 'vm': 'Run Dart code natively on the standalone dart vm.',
19 // TODO(antonm): fix option name.
19 'drt-dart': 'Run Dart code natively in the headless version of\n' 20 'drt-dart': 'Run Dart code natively in the headless version of\n'
20 'Chrome, DumpRenderTree.', 21 'Chrome, Content shell.',
22 // TODO(antonm): fix option name.
21 'drt-js': 'Run Dart compiled to JavaScript in the headless version\n' 23 'drt-js': 'Run Dart compiled to JavaScript in the headless version\n'
22 'of Chrome, DumpRenderTree.' 24 'of Chrome, Content shell.'
23 }); 25 });
24 26
25 parser.addFlag('checked', defaultsTo: false, 27 parser.addFlag('checked', defaultsTo: false,
26 help: 'Run tests in checked mode.'); 28 help: 'Run tests in checked mode.');
27 29
28 parser.addFlag('sort', defaultsTo: false, 30 parser.addFlag('sort', defaultsTo: false,
29 help: 'Sort test files before running.'); 31 help: 'Sort test files before running.');
30 32
31 parser.addFlag('layout-text', defaultsTo: false, 33 parser.addFlag('layout-text', defaultsTo: false,
32 help: 'Run text layout tests.'); 34 help: 'Run text layout tests.');
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 print('--include and --exclude are mutually exclusive.'); 252 print('--include and --exclude are mutually exclusive.');
251 return false; 253 return false;
252 } 254 }
253 if ((config['layout-text'] || config['layout-pixel']) && 255 if ((config['layout-text'] || config['layout-pixel']) &&
254 config['runtime'] == 'vm') { 256 config['runtime'] == 'vm') {
255 print('Layout tests must use --runtime values of "drt-dart" or "drt-js"'); 257 print('Layout tests must use --runtime values of "drt-dart" or "drt-js"');
256 return false; 258 return false;
257 } 259 }
258 return true; 260 return true;
259 } 261 }
OLDNEW
« no previous file with comments | « utils/apidoc/mdn/extractRunner.js ('k') | utils/testrunner/testrunner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698