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

Unified Diff: dart/lib/compiler/implementation/tools/mini_parser.dart

Issue 10828301: Test mini_parser.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dart/tests/compiler/dart2js/dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/tools/mini_parser.dart
diff --git a/dart/lib/compiler/implementation/tools/mini_parser.dart b/dart/lib/compiler/implementation/tools/mini_parser.dart
index 20bcb581d78292e9e192f1ea1bb678ead00252e9..2f242add020cd662def82794cd983e12fa40dfe8 100644
--- a/dart/lib/compiler/implementation/tools/mini_parser.dart
+++ b/dart/lib/compiler/implementation/tools/mini_parser.dart
@@ -22,7 +22,9 @@
int charCount = 0;
Stopwatch stopwatch;
-void main() {
+void main() { toolMain(new Options().arguments); }
kasperl 2012/08/14 08:30:03 I'd prefer to put this on multiple lines. Break af
+
+void toolMain(List<String> arguments) {
filesWithCrashes = [];
stopwatch = new Stopwatch();
MyOptions options = new MyOptions();
@@ -47,7 +49,7 @@ void main() {
}
}
- for (String argument in new Options().arguments) {
+ for (String argument in arguments) {
if (argument == "--diet") {
options.diet = true;
continue;
« no previous file with comments | « no previous file | dart/tests/compiler/dart2js/dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698