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

Unified Diff: tests/isolate/src/Isolate3NegativeTest.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/CrossIsolateMessageTest.dart ('k') | tests/isolate/src/IsolateComplexMessagesTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/src/Isolate3NegativeTest.dart
diff --git a/tests/isolate/src/Isolate3NegativeTest.dart b/tests/isolate/src/Isolate3NegativeTest.dart
index 2ed543b52697d4abc5f7b6963069b29fa998ed05..c123d0e1d0370f7c17ad408be29de8dba29e5377 100644
--- a/tests/isolate/src/Isolate3NegativeTest.dart
+++ b/tests/isolate/src/Isolate3NegativeTest.dart
@@ -29,11 +29,11 @@ class Isolate3NegativeTest extends Isolate {
}
void test(TestExpectation expect) {
- void msg_callback(var message, SendPort replyTo) {
+ void msg_callback(var message) {
// This test is a negative test and should not complete successfully.
}
void spawn_callback(SendPort port) {
- port.call("foo").receive(expect.runs2(msg_callback));
+ port.call("foo").then(expect.runs1(msg_callback));
}
expect.completes(new Isolate3NegativeTest().spawn()).then(spawn_callback);
}
« no previous file with comments | « tests/isolate/src/CrossIsolateMessageTest.dart ('k') | tests/isolate/src/IsolateComplexMessagesTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698