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

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

Issue 15698002: Update process_exit_negative_test to latest API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/process_exit_negative_test.dart
diff --git a/tests/standalone/io/process_exit_negative_test.dart b/tests/standalone/io/process_exit_negative_test.dart
index 9eede27319538780a10445f298e483cc5dca90af..418977f19b7e049bd3c8aec461210b2254df497b 100644
--- a/tests/standalone/io/process_exit_negative_test.dart
+++ b/tests/standalone/io/process_exit_negative_test.dart
@@ -9,14 +9,14 @@ import "dart:io";
import "process_test_util.dart";
void main() {
- Future<Process> fp = Process.start(getProcessTestFileName(),
- const ["0", "0", "0", "0"]);
+ var fp = Process.start(getProcessTestFileName(),
ricow1 2013/05/22 08:11:18 why change that?
Anders Johnsen 2013/05/22 08:14:06 So we don't have to pull in dart:async. (for Futur
+ const ["0", "0", "0", "0"]);
fp.then((p) {
- p.onExit = (int s) {
+ p.exitCode.then((int s) {
print(a.toString()); // Should cause a compilation error here.
- };
+ });
// Drain stdout and stderr.
- p.stdout.onData = p.stdout.read;
- p.stderr.onData = p.stderr.read;
+ p.stdout.listen((_) {});
+ p.stderr.listen((_) {});
});
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698