Index: tests/standalone/io/process_std_io_script2.dart |
diff --git a/tests/standalone/io/process_std_io_script2.dart b/tests/standalone/io/process_std_io_script2.dart |
index 0bd1a3e580edf1064e2eb65f066d30b216316e6f..5fe578cf64d7792fcf8da074549ad9beadc33339 100644 |
--- a/tests/standalone/io/process_std_io_script2.dart |
+++ b/tests/standalone/io/process_std_io_script2.dart |
@@ -26,21 +26,20 @@ writeData(data, encoding, stream) { |
} |
} |
-main() { |
+main(List<String> arguments) { |
var asciiString = 'abc'; |
var latin1String = 'æøå'; |
var utf8String = new String.fromCharCodes([955]); |
var binary = [0, 1, 2]; |
- var options = new Options(); |
- if (options.arguments.length > 1) { |
- var stream = options.arguments[1]; |
- if (options.arguments[0] == "ascii") { |
+ if (arguments.length > 1) { |
+ var stream = arguments[1]; |
+ if (arguments[0] == "ascii") { |
writeData(asciiString, ASCII, stream); |
- } else if (options.arguments[0] == "latin1") { |
+ } else if (arguments[0] == "latin1") { |
writeData(latin1String, LATIN1, stream); |
- } else if (options.arguments[0] == "utf8") { |
+ } else if (arguments[0] == "utf8") { |
writeData(utf8String, UTF8, stream); |
- } else if (options.arguments[0] == "binary") { |
+ } else if (arguments[0] == "binary") { |
writeData(binary, null, stream); |
} |
} |