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

Unified Diff: tests/isolate/src/ConstructorTest.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
Index: tests/isolate/src/ConstructorTest.dart
diff --git a/tests/isolate/src/ConstructorTest.dart b/tests/isolate/src/ConstructorTest.dart
index 09fed585ca0e5f34913c14a325ff97375c644b0d..c467e427fc297c6a20fd9a20083eb40eba3acb5a 100644
--- a/tests/isolate/src/ConstructorTest.dart
+++ b/tests/isolate/src/ConstructorTest.dart
@@ -21,8 +21,7 @@ class ConstructorTest extends Isolate {
void test(TestExpectation expect) {
ConstructorTest test = new ConstructorTest();
expect.completes(test.spawn()).then((SendPort port) {
- ReceivePort reply = port.call("ignored");
- reply.receive(expect.runs2((message, replyPort) {
+ port.call("ignored").then(expect.runs1((message) {
Expect.equals(499, message);
expect.succeeded();
}));
« no previous file with comments | « samples/tests/samples/src/proxy/PromiseBasedTest.dart ('k') | tests/isolate/src/CrossIsolateMessageTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698