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

Unified Diff: tests/isolate/src/SpawnTest.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/SerializationTest.dart ('k') | tests/isolate/src/StaticStateTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/src/SpawnTest.dart
diff --git a/tests/isolate/src/SpawnTest.dart b/tests/isolate/src/SpawnTest.dart
index 6d8b56cc43891086224938da22e7409dbd3bdbbd..6194312a0b8eeb20551805c88afd5cb0ba719a68 100644
--- a/tests/isolate/src/SpawnTest.dart
+++ b/tests/isolate/src/SpawnTest.dart
@@ -9,7 +9,7 @@
void test(TestExpectation expect) {
SpawnedIsolate isolate = new SpawnedIsolate();
expect.completes(isolate.spawn()).then((SendPort port) {
- port.call(42).receive(expect.runs2((message, replyTo) {
+ port.call(42).then(expect.runs1((message) {
Expect.equals(42, message);
expect.succeeded();
}));
« no previous file with comments | « tests/isolate/src/SerializationTest.dart ('k') | tests/isolate/src/StaticStateTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698