| Index: tests/isolate/src/NestedSpawnTest.dart
|
| diff --git a/tests/isolate/src/NestedSpawnTest.dart b/tests/isolate/src/NestedSpawnTest.dart
|
| index 421198bca7c9e71f00236288859d9f2e0a37602e..778304121e0a14e3569881ebe8e7ea22f91a60d1 100644
|
| --- a/tests/isolate/src/NestedSpawnTest.dart
|
| +++ b/tests/isolate/src/NestedSpawnTest.dart
|
| @@ -6,7 +6,7 @@
|
|
|
| #library('NestedSpawnTest');
|
| #import("dart:isolate");
|
| -#import('../../../lib/unittest/unittest.dart');
|
| +#import('TestFramework.dart');
|
|
|
| class IsolateA extends Isolate {
|
| IsolateA() : super.heavy();
|
| @@ -37,13 +37,15 @@ class IsolateB extends Isolate {
|
| }
|
| }
|
|
|
| -
|
| -main() {
|
| - 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);
|
| - }));
|
| +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]);
|
| +}
|
|
|