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

Unified Diff: tests/standalone/io/process_sync_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/process_sync_script.dart
diff --git a/tests/standalone/io/process_sync_script.dart b/tests/standalone/io/process_sync_script.dart
index 5369124251414bd7ae0f4fee844dae37806d35ec..6ef1241ffae47a0b9c7f214beeca4643b8df6156 100644
--- a/tests/standalone/io/process_sync_script.dart
+++ b/tests/standalone/io/process_sync_script.dart
@@ -8,11 +8,10 @@ import "dart:async";
import "dart:math";
import "dart:io";
-main() {
- var options = new Options();
- var blockCount = int.parse(options.arguments[0]);
- var stdoutBlockSize = int.parse(options.arguments[1]);
- var stderrBlockSize = int.parse(options.arguments[2]);
+main(List<String> arguments) {
+ var blockCount = int.parse(arguments[0]);
+ var stdoutBlockSize = int.parse(arguments[1]);
+ var stderrBlockSize = int.parse(arguments[2]);
var stdoutBlock =
new String.fromCharCodes(new List.filled(stdoutBlockSize, 65));
var stderrBlock =
@@ -22,6 +21,6 @@ main() {
stderr.write(stderrBlock);
}
Future.wait([stdout.close(), stderr.close()]).then((_) {
- exit(int.parse(options.arguments[3]));
+ exit(int.parse(arguments[3]));
});
}
« no previous file with comments | « tests/standalone/io/process_std_io_script2.dart ('k') | tests/standalone/io/raw_socket_cross_process_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698