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

Unified Diff: client/tests/client/dom/DOMIsolatesTest.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 | « no previous file | client/tests/client/dom/IsolatesTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/client/dom/DOMIsolatesTest.dart
diff --git a/client/tests/client/dom/DOMIsolatesTest.dart b/client/tests/client/dom/DOMIsolatesTest.dart
index 61d4d7e8276775bc0434ff05f19aeb56897041cb..a79503c2e088160e2ad8da9d722ff4b9f1b61dc3 100644
--- a/client/tests/client/dom/DOMIsolatesTest.dart
+++ b/client/tests/client/dom/DOMIsolatesTest.dart
@@ -17,7 +17,7 @@ isolateMainTrampoline(port) {
final childPortFuture = spawnDomIsolate(window, 'isolateMain');
port.receive((msg, parentPort) {
childPortFuture.then((childPort) {
- childPort.call(msg).receive((response, _) {
+ childPort.call(msg).then((response) {
parentPort.send(response);
port.close();
});
@@ -33,7 +33,7 @@ main() {
asyncTest('Simple DOM isolate test', 1, () {
spawnDomIsolate(iframe.contentWindow, 'isolateMain').then((sendPort) {
- sendPort.call('check').receive((msg, replyTo) {
+ sendPort.call('check').then((msg) {
Expect.equals('about:blank', msg);
callbackDone();
});
@@ -42,7 +42,7 @@ main() {
asyncTest('Nested DOM isolates test', 1, () {
spawnDomIsolate(iframe.contentWindow, 'isolateMainTrampoline').then((sendPort) {
- sendPort.call('check').receive((msg, replyTo) {
+ sendPort.call('check').then((msg) {
Expect.equals('about:blank', msg);
callbackDone();
});
« no previous file with comments | « no previous file | client/tests/client/dom/IsolatesTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698