| Index: tests/standalone/issue14236_source.dart
|
| diff --git a/tests/standalone/issue14236_source.dart b/tests/standalone/issue14236_source.dart
|
| index 4d2dc693280fcf31c87aa6ef758c3681b9d7f539..3b9e1641c9d0a9db6f50e7fdc5cab3c5e38a50b1 100644
|
| --- a/tests/standalone/issue14236_source.dart
|
| +++ b/tests/standalone/issue14236_source.dart
|
| @@ -13,16 +13,18 @@ import 'dart:isolate';
|
| import "package:expect/expect.dart";
|
|
|
| /*
|
| -test() {
|
| - port.receive((msg, reply) => reply.send(msg));
|
| +test(SendPort replyTo) {
|
| + replyTo.send("from Isolate");
|
| }
|
|
|
| main() {
|
| + asyncStart();
|
| ReceivePort port = new ReceivePort();
|
| - port.receive((msg, reply) => port.close());
|
| -
|
| - SendPort s = spawnFunction(test);
|
| - s.send('hi', port.toSendPort());
|
| + Isolate.spawn(test, port.sendPort);
|
| + port.first.then((msg) {
|
| + Expect.equals("from Isolate", msg);
|
| + asyncEnd();
|
| + });
|
| }
|
| */
|
|
|
|
|