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

Side by Side Diff: tools/testing/dart/test_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 | « tools/testing/dart/drt_updater.dart ('k') | tools/testing/dart/test_runner.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 import "dart:math"; 8 import "dart:math";
9 import "drt_updater.dart"; 9 import "drt_updater.dart";
10 import "test_suite.dart"; 10 import "test_suite.dart";
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 none (compile only)), 78 none (compile only)),
79 79
80 dartc: Perform static analysis on Dart code by running dartc. 80 dartc: Perform static analysis on Dart code by running dartc.
81 (only valid with the following runtimes: none), 81 (only valid with the following runtimes: none),
82 82
83 dartanalyzer: Perform static analysis on Dart code by running the analyzer. 83 dartanalyzer: Perform static analysis on Dart code by running the analyzer.
84 (only valid with the following runtimes: none)''', 84 (only valid with the following runtimes: none)''',
85 ['-c', '--compiler'], 85 ['-c', '--compiler'],
86 ['none', 'dart2dart', 'dart2js', 'dartc', 'dartanalyzer'], 86 ['none', 'dart2dart', 'dart2js', 'dartc', 'dartanalyzer'],
87 'none'), 87 'none'),
88 // TODO(antonm): fix the option drt.
88 new _TestOptionSpecification( 89 new _TestOptionSpecification(
89 'runtime', 90 'runtime',
90 '''Where the tests should be run. 91 '''Where the tests should be run.
91 vm: Run Dart code on the standalone dart vm. 92 vm: Run Dart code on the standalone dart vm.
92 93
93 d8: Run JavaScript from the command line using v8. 94 d8: Run JavaScript from the command line using v8.
94 95
95 jsshell: Run JavaScript from the command line using firefox js-shell. 96 jsshell: Run JavaScript from the command line using firefox js-shell.
96 97
97 drt: Run Dart or JavaScript in the headless version of Chrome, 98 drt: Run Dart or JavaScript in the headless version of Chrome,
98 DumpRenderTree. 99 Content shell.
99 100
100 dartium: Run Dart or JavaScript in Dartium. 101 dartium: Run Dart or JavaScript in Dartium.
101 102
102 [ff | chrome | safari | ie9 | ie10 | opera | chromeOnAndroid]: 103 [ff | chrome | safari | ie9 | ie10 | opera | chromeOnAndroid]:
103 Run JavaScript in the specified browser. 104 Run JavaScript in the specified browser.
104 105
105 none: No runtime, compile only (for example, used for dartc static analysis 106 none: No runtime, compile only (for example, used for dartc static analysis
106 tests).''', 107 tests).''',
107 ['-r', '--runtime'], 108 ['-r', '--runtime'],
108 ['vm', 'd8', 'jsshell', 'drt', 'dartium', 'ff', 'firefox', 109 ['vm', 'd8', 'jsshell', 'drt', 'dartium', 'ff', 'firefox',
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 [], 246 [],
246 false, 247 false,
247 'bool'), 248 'bool'),
248 new _TestOptionSpecification( 249 new _TestOptionSpecification(
249 'dart', 250 'dart',
250 'Path to dart executable', 251 'Path to dart executable',
251 ['--dart'], 252 ['--dart'],
252 [], 253 [],
253 ''), 254 ''),
254 new _TestOptionSpecification( 255 new _TestOptionSpecification(
255 'drt', 256 'drt', // TODO(antonm): fix the option name.
256 'Path to DumpRenderTree executable', 257 'Path to content shell executable',
257 ['--drt'], 258 ['--drt'],
258 [], 259 [],
259 ''), 260 ''),
260 new _TestOptionSpecification( 261 new _TestOptionSpecification(
261 'dartium', 262 'dartium',
262 'Path to Dartium Chrome executable', 263 'Path to Dartium Chrome executable',
263 ['--dartium'], 264 ['--dartium'],
264 [], 265 [],
265 ''), 266 ''),
266 new _TestOptionSpecification( 267 new _TestOptionSpecification(
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 return option; 723 return option;
723 } 724 }
724 } 725 }
725 print('Unknown test option $name'); 726 print('Unknown test option $name');
726 exit(1); 727 exit(1);
727 } 728 }
728 729
729 730
730 List<_TestOptionSpecification> _options; 731 List<_TestOptionSpecification> _options;
731 } 732 }
OLDNEW
« no previous file with comments | « tools/testing/dart/drt_updater.dart ('k') | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698