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

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

Issue 12387014: Correctly close done future with an error, before a normal complete can happen. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « runtime/bin/socket_patch.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/stdout_bad_argument_test.dart
diff --git a/tests/standalone/io/print_env.dart b/tests/standalone/io/stdout_bad_argument_test.dart
similarity index 71%
copy from tests/standalone/io/print_env.dart
copy to tests/standalone/io/stdout_bad_argument_test.dart
index 997c3a802b686935d086c0ff9b1b265232e6e496..95ce44d71b1a35b73023ef281a3835b870e513a1 100644
--- a/tests/standalone/io/print_env.dart
+++ b/tests/standalone/io/stdout_bad_argument_test.dart
@@ -5,5 +5,9 @@
import "dart:io";
main() {
- print(Platform.environment[new Options().arguments[0]]);
+ stdout.add("Hello\n");
+ stdout.done.catchError((e) {
+ exit(0);
+ });
+ stdin.listen(print);
}
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698