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

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

Issue 11091070: Change Process.start to return a future that completes with a (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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_exit_test.dart
diff --git a/tests/standalone/io/process_exit_test.dart b/tests/standalone/io/process_exit_test.dart
index 107a933070444fb352b37aeceff512a30046e2de..84e5865db8a4a4d2ab02a65d15a42ccb0cedc070 100644
--- a/tests/standalone/io/process_exit_test.dart
+++ b/tests/standalone/io/process_exit_test.dart
@@ -9,13 +9,14 @@
#source("process_test_util.dart");
testExit() {
- Process process = Process.start(getProcessTestFileName(),
- const ["0", "0", "99", "0"]);
-
- process.onExit = (int exitCode) {
- Expect.equals(exitCode, 99);
- process.close();
- };
+ var future = Process.start(getProcessTestFileName(),
+ const ["0", "0", "99", "0"]);
+ future.then((process) {
+ process.onExit = (int exitCode) {
+ Expect.equals(exitCode, 99);
+ process.close();
+ };
+ });
}
testExitRun() {

Powered by Google App Engine
This is Rietveld 408576698