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

Unified Diff: tests/standalone/io/process_check_arguments_script.dart

Issue 37033002: dart:io | Remove uses of Options class from standalone tests. Mark Options deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove commented lines from standalone.status. Created 7 years, 2 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 | « tests/standalone/io/print_env.dart ('k') | tests/standalone/io/process_echo_util.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/process_check_arguments_script.dart
diff --git a/tests/standalone/io/process_check_arguments_script.dart b/tests/standalone/io/process_check_arguments_script.dart
index 183beafca8ac87b5e8b1ba9f33d5a481f3a3c664..094fba9321c9b30278512cd3764e941b1c04c118 100644
--- a/tests/standalone/io/process_check_arguments_script.dart
+++ b/tests/standalone/io/process_check_arguments_script.dart
@@ -21,14 +21,13 @@ class Expect {
}
}
-main() {
- var options = new Options();
+main(List<String> arguments) {
Expect.isTrue(Platform.script.endsWith(
'process_check_arguments_script.dart'));
- var expected_num_args = int.parse(options.arguments[0]);
- var contains_quote = int.parse(options.arguments[1]);
- Expect.equals(expected_num_args, options.arguments.length);
- for (var i = 2; i < options.arguments.length; i++) {
- Expect.isTrue((contains_quote == 0) || options.arguments[i].contains('"'));
+ var expected_num_args = int.parse(arguments[0]);
+ var contains_quote = int.parse(arguments[1]);
+ Expect.equals(expected_num_args, arguments.length);
+ for (var i = 2; i < arguments.length; i++) {
+ Expect.isTrue((contains_quote == 0) || arguments[i].contains('"'));
}
}
« no previous file with comments | « tests/standalone/io/print_env.dart ('k') | tests/standalone/io/process_echo_util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698