Chromium Code Reviews| Index: pkg/serialization/test/serialization_test.dart |
| diff --git a/pkg/serialization/test/serialization_test.dart b/pkg/serialization/test/serialization_test.dart |
| index 83232c91ace606b1a8c3158892a1e0bbec8ecc0a..832330a27d08d0cbb7ede38bfcdb5f05533d090e 100644 |
| --- a/pkg/serialization/test/serialization_test.dart |
| +++ b/pkg/serialization/test/serialization_test.dart |
| @@ -549,8 +549,9 @@ void main() { |
| n3.parent = n1; |
| var s = nodeSerializerReflective(n1); |
| var output = s.write(n2); |
| - var port = spawnFunction(echo); |
| - return port.call(output).then(verify); |
| + ReceivePort port = new ReceivePort(); |
| + var remote = Isolate.spawn(echo, [port.sendPort, output]); |
|
Lasse Reichstein Nielsen
2013/10/25 09:42:49
I generally put the reply port last, just as it us
floitsch
2013/10/25 13:11:01
I usually do too. Don't know why I didn't do it he
Ivan Posva
2013/10/25 18:41:39
I generally put the reply first. I guess this is b
|
| + port.first.then(verify); |
| }); |
| } |
| @@ -808,8 +809,8 @@ class PersonRuleReturningMapWithNonStringKey extends CustomRule { |
| * Function used in an isolate to make sure that the output passes through |
| * isolate serialization properly. |
| */ |
| -void echo() { |
| - port.receive((msg, reply) { |
| - reply.send(msg); |
| - }); |
| +void echo(initialMessage) { |
| + var reply = initialMessage[0]; |
| + var msg = initialMessage[1]; |
| + reply.send(msg); |
| } |