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

Unified Diff: tests/standalone/io/dart_std_io_pipe_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
Index: tests/standalone/io/dart_std_io_pipe_script.dart
diff --git a/tests/standalone/io/dart_std_io_pipe_script.dart b/tests/standalone/io/dart_std_io_pipe_script.dart
index 76402d65c605c9c9f853a5e1bd1edb6169c75e3b..9ae4c776d4cf3433b2d25cd2178962b736f90067 100644
--- a/tests/standalone/io/dart_std_io_pipe_script.dart
+++ b/tests/standalone/io/dart_std_io_pipe_script.dart
@@ -6,26 +6,25 @@
import "dart:io";
-main() {
- var options = new Options();
+main(List<String> arguments) {
if (stdioType(stdin) is !StdioType) exit(1);
if (stdioType(stdout) is !StdioType) exit(1);
if (stdioType(stderr) is !StdioType) exit(1);
- if (stdioType(stdin).name != options.arguments[1]) {
+ if (stdioType(stdin).name != arguments[1]) {
throw stdioType(stdin).name;
}
- if (stdioType(stdout).name != options.arguments[2]) {
+ if (stdioType(stdout).name != arguments[2]) {
throw stdioType(stdout).name;
}
- if (stdioType(stderr).name != options.arguments[3]) {
+ if (stdioType(stderr).name != arguments[3]) {
throw stdioType(stderr).name;
}
- if (options.arguments.length > 0) {
- if (options.arguments[0] == "0") {
+ 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/http_launch_data/http_spawn_main.dart ('k') | tests/standalone/io/http_cross_process_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698