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

Unified Diff: tests/standalone/io/dart_std_io_pipe_test.dart

Issue 12316036: Merge IO v2 branch to bleeding edge (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased to r18818 Created 7 years, 10 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/chunked_stream_test.dart ('k') | tests/standalone/io/directory_error_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/dart_std_io_pipe_test.dart
diff --git a/tests/standalone/io/dart_std_io_pipe_test.dart b/tests/standalone/io/dart_std_io_pipe_test.dart
index 967c48ab14ac54bd089c81c4a81b96480ba9f67a..a4d4f246d100442ada229fccd8d2c718cb4ec368 100644
--- a/tests/standalone/io/dart_std_io_pipe_test.dart
+++ b/tests/standalone/io/dart_std_io_pipe_test.dart
@@ -42,7 +42,7 @@ void test(String shellScript, String dartScript, String type) {
[executable, dartScript, type, pipeOutFile, redirectOutFile];
var future = Process.start(shellScript, args);
future.then((process) {
- process.onExit = (exitCode) {
+ process.exitCode.then((exitCode) {
Expect.equals(0, exitCode);
// Check the expected file contents.
@@ -66,10 +66,10 @@ void test(String shellScript, String dartScript, String type) {
// Cleanup test directory.
dir.deleteSync(recursive: true);
- };
+ });
// Drain out and err streams so they close.
- process.stdout.onData = process.stdout.read;
- process.stderr.onData = process.stderr.read;
+ process.stdout.listen((_) {});
+ process.stderr.listen((_) {});
});
future.catchError((error) {
dir.deleteSync(recursive: true);
« no previous file with comments | « tests/standalone/io/chunked_stream_test.dart ('k') | tests/standalone/io/directory_error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698