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

Unified Diff: tests/standalone/io/process_std_io_script2.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_std_io_script.dart ('k') | tests/standalone/io/process_sync_script.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_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);
}
}
« no previous file with comments | « tests/standalone/io/process_std_io_script.dart ('k') | tests/standalone/io/process_sync_script.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698