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

Unified Diff: tests/compiler/dart2js_extra/isolate2_test.dart

Issue 27215002: Very simple version of Isolates. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 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/compiler/dart2js_extra/isolate2_negative_test.dart ('k') | tests/html/async_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/isolate2_test.dart
diff --git a/tests/compiler/dart2js_extra/isolate2_negative_test.dart b/tests/compiler/dart2js_extra/isolate2_test.dart
similarity index 72%
rename from tests/compiler/dart2js_extra/isolate2_negative_test.dart
rename to tests/compiler/dart2js_extra/isolate2_test.dart
index 8004371dae94dad3e11553da647ee4c28879eb0a..ea06acdefea2e9346e2e092dceff81f94a9a5858 100644
--- a/tests/compiler/dart2js_extra/isolate2_negative_test.dart
+++ b/tests/compiler/dart2js_extra/isolate2_test.dart
@@ -10,11 +10,13 @@
library isolate2_negative_test;
import 'dart:isolate';
-void entry() {
- throw "foo";
+void entry(SendPort replyTo) {
+ throw "foo"; /// 01: runtime error
+ replyTo.send("done");
}
main() {
- SendPort port = spawnFunction(entry);
- port.receive((msg) {});
+ var port = new ReceivePort();
+ Isolate.spawn(entry, port.sendPort);
+ port.first;
}
« no previous file with comments | « tests/compiler/dart2js_extra/isolate2_negative_test.dart ('k') | tests/html/async_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698