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

Unified Diff: tests/standalone/io/process_std_io_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/process_echo_util.dart ('k') | tests/standalone/io/process_std_io_script2.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/process_std_io_script.dart
diff --git a/tests/standalone/io/process_std_io_script.dart b/tests/standalone/io/process_std_io_script.dart
index 7e55c8d85351b7d56770cb7d95728f65cff3400b..8aee620a52dcaf95ef75f85987aff19eb0d535b5 100644
--- a/tests/standalone/io/process_std_io_script.dart
+++ b/tests/standalone/io/process_std_io_script.dart
@@ -6,14 +6,13 @@
import "dart:io";
-main() {
- var options = new Options();
- if (options.arguments.length > 0) {
- if (options.arguments[0] == "0") {
+main(List<String> arguments) {
+ if (arguments.length > 0) {
+ if (arguments[0] == "0") {
stdin.pipe(stdout);
- } else if (options.arguments[0] == "1") {
+ } else if (arguments[0] == "1") {
stdin.pipe(stderr);
- } else if (options.arguments[0] == "2") {
+ } else if (arguments[0] == "2") {
stdin.listen((data) {
stdout.add(data);
stderr.add(data);
« no previous file with comments | « tests/standalone/io/process_echo_util.dart ('k') | tests/standalone/io/process_std_io_script2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698