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

Unified Diff: tests/isolate/isolate2_negative_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_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/isolate2_negative_test.dart
diff --git a/tests/isolate/isolate2_negative_test.dart b/tests/isolate/isolate2_negative_test.dart
index 720b825ff327d61f28141b442a55d260115b4af0..01cf0ed29c6ebea7b278ddef121304918547a71f 100644
--- a/tests/isolate/isolate2_negative_test.dart
+++ b/tests/isolate/isolate2_negative_test.dart
@@ -7,11 +7,16 @@
library isolate2_negative_test;
import 'dart:isolate';
+import '../async_helper.dart';
void entry() {
throw "foo";
}
main() {
+ // We start an asynchronous operation, but since we don't expect to get
+ // anything back except an exception there is no asyncEnd().
+ // If the exception is not thrown this test will timeout.
+ asyncStart();
SendPort port = spawnFunction(entry);
}
« no previous file with comments | « tests/isolate/illegal_msg_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698