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

Unified Diff: tests/isolate/illegal_msg_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/illegal_msg_stream_test.dart ('k') | tests/isolate/isolate2_negative_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/illegal_msg_test.dart
diff --git a/tests/isolate/illegal_msg_test.dart b/tests/isolate/illegal_msg_test.dart
index 434edc37815834842fc1127d85b7ef822d4594e6..aa17b4651b48cecabecb362b45e77d34712f9834 100644
--- a/tests/isolate/illegal_msg_test.dart
+++ b/tests/isolate/illegal_msg_test.dart
@@ -5,6 +5,7 @@
library illegal_msg_tests;
import "package:expect/expect.dart";
import 'dart:isolate';
+import '../async_helper.dart';
funcFoo(x) => x + 2;
@@ -26,8 +27,10 @@ main() {
if (caught_exception) {
port.close();
} else {
+ asyncStart();
port.receive((msg, reply) {
print("from worker ${msg}");
+ asyncEnd();
});
}
Expect.isTrue(caught_exception);
« no previous file with comments | « tests/isolate/illegal_msg_stream_test.dart ('k') | tests/isolate/isolate2_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698