| Index: tests/isolate/src/NestedSpawnTest.dart
|
| diff --git a/tests/isolate/src/NestedSpawnTest.dart b/tests/isolate/src/NestedSpawnTest.dart
|
| index 778304121e0a14e3569881ebe8e7ea22f91a60d1..421198bca7c9e71f00236288859d9f2e0a37602e 100644
|
| --- a/tests/isolate/src/NestedSpawnTest.dart
|
| +++ b/tests/isolate/src/NestedSpawnTest.dart
|
| @@ -6,7 +6,7 @@
|
|
|
| #library('NestedSpawnTest');
|
| #import("dart:isolate");
|
| -#import('TestFramework.dart');
|
| +#import('../../../lib/unittest/unittest.dart');
|
|
|
| class IsolateA extends Isolate {
|
| IsolateA() : super.heavy();
|
| @@ -37,15 +37,13 @@ class IsolateB extends Isolate {
|
| }
|
| }
|
|
|
| -test(TestExpectation expect) {
|
| - expect.completes(new IsolateA().spawn()).then((SendPort port) {
|
| - port.call("launch nested!").then(expect.runs1((msg) {
|
| - Expect.equals(499, msg);
|
| - expect.succeeded();
|
| - }));
|
| - });
|
| -}
|
|
|
| main() {
|
| - runTests([test]);
|
| + test("spawned isolates can spawn nested isolates", () {
|
| + new IsolateA().spawn().then(expectAsync1((SendPort port) {
|
| + port.call("launch nested!").then(expectAsync1((msg) {
|
| + Expect.equals(499, msg);
|
| + }));
|
| + }));
|
| + });
|
| }
|
|
|