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

Unified Diff: tests/isolate/illegal_msg_stream_test.dart

Issue 16958006: Added async_helper and fixed broken asynchronous test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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/isolate/global_error_handler_stream2_test.dart ('k') | tests/isolate/illegal_msg_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/illegal_msg_stream_test.dart
diff --git a/tests/isolate/illegal_msg_stream_test.dart b/tests/isolate/illegal_msg_stream_test.dart
index bcc91354657574b38e388c5d8fcf03eb09b9ba8f..2271ed53990670578b3a26b95205580c5a6dfdc2 100644
--- a/tests/isolate/illegal_msg_stream_test.dart
+++ b/tests/isolate/illegal_msg_stream_test.dart
@@ -6,6 +6,7 @@ library test;
import 'package:expect/expect.dart';
import 'dart:isolate';
+import '../async_helper.dart';
funcFoo(x) => x + 2;
@@ -29,7 +30,9 @@ main() {
snd.add(box.sink);
snd.close();
+ asyncStart();
box.stream.single.then((msg) {
Expect.equals(499, msg);
+ asyncEnd();
});
}
« no previous file with comments | « tests/isolate/global_error_handler_stream2_test.dart ('k') | tests/isolate/illegal_msg_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698