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

Unified Diff: tests/isolate/src/NestedSpawnTest.dart

Issue 9652001: SendPort + ReceivePort changes: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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/src/NestedSpawn2Test.dart ('k') | tests/isolate/src/RequestReplyTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/src/NestedSpawnTest.dart
diff --git a/tests/isolate/src/NestedSpawnTest.dart b/tests/isolate/src/NestedSpawnTest.dart
index b86d8906ef381bf7b611d770a59f959c02eef33e..778304121e0a14e3569881ebe8e7ea22f91a60d1 100644
--- a/tests/isolate/src/NestedSpawnTest.dart
+++ b/tests/isolate/src/NestedSpawnTest.dart
@@ -15,7 +15,7 @@ class IsolateA extends Isolate {
this.port.receive((msg, replyTo) {
Expect.equals("launch nested!", msg);
new IsolateB().spawn().then((SendPort p) {
- p.call("alive?").receive((msg, ignored) {
+ p.call("alive?").then((msg) {
Expect.equals("and kicking", msg);
replyTo.send(499, null);
this.port.close();
@@ -39,7 +39,7 @@ class IsolateB extends Isolate {
test(TestExpectation expect) {
expect.completes(new IsolateA().spawn()).then((SendPort port) {
- port.call("launch nested!").receive(expect.runs2((msg, ignored) {
+ port.call("launch nested!").then(expect.runs1((msg) {
Expect.equals(499, msg);
expect.succeeded();
}));
« no previous file with comments | « tests/isolate/src/NestedSpawn2Test.dart ('k') | tests/isolate/src/RequestReplyTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698