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

Unified Diff: tests/isolate/v2_unresolved_ports_negative_test.dart

Issue 10544167: Some unit test fixes (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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/v2_spawn_uri_vm_test.dart ('k') | tests/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/v2_unresolved_ports_negative_test.dart
===================================================================
--- tests/isolate/v2_unresolved_ports_negative_test.dart (revision 8732)
+++ tests/isolate/v2_unresolved_ports_negative_test.dart (working copy)
@@ -8,19 +8,19 @@
#import('../../lib/unittest/unittest.dart');
bethIsolate() {
- port.receive((msg, reply) => msg[1].send(
- '${msg[0]}\nBeth says: Tim are you coming? And Bob?', reply));
+ port.receive(expectAsync2((msg, reply) => msg[1].send(
+ '${msg[0]}\nBeth says: Tim are you coming? And Bob?', reply)));
}
timIsolate() {
SendPort bob = spawnFunction(bobIsolate);
- port.receive((msg, reply) => bob.send(
- '$msg\nTim says: Can you tell "main" that we are all coming?', reply));
+ port.receive(expectAsync2((msg, reply) => bob.send(
+ '$msg\nTim says: Can you tell "main" that we are all coming?', reply)));
}
bobIsolate() {
- port.receive((msg, reply) => reply.send(
- '$msg\nBob says: we are all coming!'));
+ port.receive(expectAsync2((msg, reply) => reply.send(
+ '$msg\nBob says: we are all coming!')));
}
main() {
@@ -44,3 +44,4 @@
port.toSendPort());
});
}
+
« no previous file with comments | « tests/isolate/v2_spawn_uri_vm_test.dart ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698