| Index: tests/isolate/src/APIv2_spawnStandaloneNegativeTest.dart
|
| diff --git a/tests/isolate/src/APIv2_spawnStandaloneNegativeTest.dart b/tests/isolate/src/APIv2_spawnStandaloneNegativeTest.dart
|
| index a04f476bcb4f95de2dd0b033cd14e5e657000585..1887c8a26df73c3c0fabab2dd23beb2b20c1077e 100644
|
| --- a/tests/isolate/src/APIv2_spawnStandaloneNegativeTest.dart
|
| +++ b/tests/isolate/src/APIv2_spawnStandaloneNegativeTest.dart
|
| @@ -6,17 +6,17 @@
|
| #library('spawn_tests');
|
| #import('dart:isolate');
|
|
|
| -child(ReceivePort port) {
|
| - port.receive((msg, reply) => reply.send("re: $msg"));
|
| +child() {
|
| + port.receive((msg, reply) => reply.send('re: $msg'));
|
| }
|
|
|
| main() {
|
| ReceivePort port = new ReceivePort();
|
| port.receive((msg, _) {
|
| - Expect.equals("re: hello", msg); // should be hi, not hello
|
| + Expect.equals('re: hello', msg); // should be hi, not hello
|
| port.close();
|
| });
|
|
|
| - Isolate2 c = new Isolate2.fromCode(child);
|
| - c.sendPort.send("hi", port.toSendPort());
|
| + SendPort s = spawnFunction(child);
|
| + s.send('hi', port.toSendPort());
|
| }
|
|
|