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

Unified Diff: dart/tools/testing/dart/co19_test.dart

Issue 11299161: Allow passing in command-line options to co19_test.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/testing/dart/co19_test.dart
diff --git a/dart/tools/testing/dart/co19_test.dart b/dart/tools/testing/dart/co19_test.dart
index 0adda23a69eba2b9d77d99f9f2d6640a6121884e..9c6de093ac2964b561e25b46a7970e72d2303697 100644
--- a/dart/tools/testing/dart/co19_test.dart
+++ b/dart/tools/testing/dart/co19_test.dart
@@ -35,7 +35,8 @@ const List<List<String>> COMMAND_LINES = const <List<String>>[
const <String>['-mrelease', '-rd8', '-cdart2js', '--use-sdk', '--checked']];
void main() {
- File scriptFile = new File(new Options().script);
+ Options options = new Options();
+ File scriptFile = new File(options.script);
Path scriptPath =
new Path.fromNative(scriptFile.fullPathSync())
.directoryPath.directoryPath.directoryPath.append('test.dart');
@@ -46,6 +47,7 @@ void main() {
for (var commandLine in COMMAND_LINES) {
List arguments = <String>[];
arguments.addAll(COMMON_ARGUMENTS);
+ arguments.addAll(options.arguments);
arguments.addAll(commandLine);
arguments.add('co19');
configurations.addAll(optionsParser.parse(arguments));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698