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

Unified Diff: tests/standalone/io/process_check_arguments_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: Restructure to get rid of _onStart and _onError 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
« no previous file with comments | « tests/standalone/io/process_broken_pipe_test.dart ('k') | tests/standalone/io/process_exit_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/process_check_arguments_test.dart
diff --git a/tests/standalone/io/process_check_arguments_test.dart b/tests/standalone/io/process_check_arguments_test.dart
index e246e8a87688bb20f15c955ebd7e4bdfd532dbb4..cc0f5e73f6b20cae5afe1a343cb1849b89cccfda 100644
--- a/tests/standalone/io/process_check_arguments_test.dart
+++ b/tests/standalone/io/process_check_arguments_test.dart
@@ -6,12 +6,13 @@
#source("process_test_util.dart");
test(args) {
- Process process = Process.start(new Options().executable, args);
- // Wait for the process to exit and then check result.
- process.onExit = (exitCode) {
- Expect.equals(0, exitCode);
- process.close();
- };
+ var future = Process.start(new Options().executable, args);
+ future.then((process) {
+ process.onExit = (exitCode) {
+ Expect.equals(0, exitCode);
+ process.close();
+ };
+ });
}
main() {
« no previous file with comments | « tests/standalone/io/process_broken_pipe_test.dart ('k') | tests/standalone/io/process_exit_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698