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

Unified Diff: client/tests/client/dom/IsolatesTest.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 | « client/tests/client/dom/DOMIsolatesTest.dart ('k') | frog/leg/lib/mockimpl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/client/dom/IsolatesTest.dart
diff --git a/client/tests/client/dom/IsolatesTest.dart b/client/tests/client/dom/IsolatesTest.dart
index 65faa7103b137e056afc93e4ab0746377ed4b0f6..86aac7d580bf20c8161ef2ca7fad2dbe6d4ffc01 100644
--- a/client/tests/client/dom/IsolatesTest.dart
+++ b/client/tests/client/dom/IsolatesTest.dart
@@ -41,9 +41,9 @@ main() {
new PingPongIsolate().spawn().then((isolate.SendPort port) {
final msg1 = 'foo';
final msg2 = 'bar';
- port.call(msg1).receive((response, _) {
+ port.call(msg1).then((response) {
Expect.equals(PingPongIsolate.responseFor(msg1), response);
- port.call(msg2).receive((response, _) {
+ port.call(msg2).then((response) {
Expect.equals(PingPongIsolate.responseFor(msg2), response);
callbackDone();
});
« no previous file with comments | « client/tests/client/dom/DOMIsolatesTest.dart ('k') | frog/leg/lib/mockimpl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698