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

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

Issue 91473002: Checked-in binary update to v1.0.0.3 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « dart/tools/testing/dart/http_server.dart ('k') | dart/tools/testing/dart/multitest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/testing/dart/launch_browser.dart
diff --git a/dart/tools/testing/dart/launch_browser.dart b/dart/tools/testing/dart/launch_browser.dart
index 0b752d33d5019c1eb9af824c713202bd1581abc6..269d151f3ea792fb0f7130bb030e87772a49a62a 100644
--- a/dart/tools/testing/dart/launch_browser.dart
+++ b/dart/tools/testing/dart/launch_browser.dart
@@ -20,14 +20,13 @@ void printHelp() {
print("Supported browsers: ${Browser.SUPPORTED_BROWSERS}");
}
-void main() {
- var args = new Options().arguments;
- if (args.length != 2) {
+void main(List<String> arguments) {
+ if (arguments.length != 2) {
print("Wrong number of arguments, please pass in exactly two arguments");
printHelp();
return;
}
- var name = args[0];
+ var name = arguments[0];
if (!Browser.supportedBrowser(name)) {
print("Specified browser not supported");
@@ -37,5 +36,5 @@ void main() {
var executable = Locations.getBrowserLocation(name, {});
var browser = new Browser.byName(name, executable);
- browser.start(args[1]);
+ browser.start(arguments[1]);
}
« no previous file with comments | « dart/tools/testing/dart/http_server.dart ('k') | dart/tools/testing/dart/multitest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698