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

Unified Diff: tests/isolate/src/StaticStateTest.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/SpawnTest.dart ('k') | tests/isolate/src/TestFramework.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/src/StaticStateTest.dart
diff --git a/tests/isolate/src/StaticStateTest.dart b/tests/isolate/src/StaticStateTest.dart
index 606d5cb183c2c74b11947038522c9aec903ef5e2..c993df938d3dc9cb28de58ad4d08cbe6e4ef7104 100644
--- a/tests/isolate/src/StaticStateTest.dart
+++ b/tests/isolate/src/StaticStateTest.dart
@@ -32,12 +32,12 @@ void test(TestExpectation expect) {
Expect.equals("foo", TestIsolate.state);
expect.completes(new TestIsolate().spawn()).then((SendPort remote) {
- remote.call("bar").receive(expect.runs2((reply, replyTo) {
+ remote.call("bar").then(expect.runs1((reply) {
Expect.equals("foo", TestIsolate.state);
Expect.equals(null, reply);
TestIsolate.state = "baz";
- remote.call("exit").receive(expect.runs2((reply, replyTo) {
+ remote.call("exit").then(expect.runs1((reply) {
Expect.equals("baz", TestIsolate.state);
Expect.equals("bar", reply);
expect.succeeded();
« no previous file with comments | « tests/isolate/src/SpawnTest.dart ('k') | tests/isolate/src/TestFramework.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698