| Index: tests/isolate/src/MixedTest.dart
|
| diff --git a/tests/isolate/src/MixedTest.dart b/tests/isolate/src/MixedTest.dart
|
| index e2870f282fe094104213f088ec1cc713bb4421ed..eafdf6773e427080d44833586998ab94c35be57d 100644
|
| --- a/tests/isolate/src/MixedTest.dart
|
| +++ b/tests/isolate/src/MixedTest.dart
|
| @@ -6,7 +6,7 @@
|
|
|
| #library('MixedTest');
|
| #import("dart:isolate");
|
| -#import('TestFramework.dart');
|
| +#import('../../../lib/unittest/unittest.dart');
|
|
|
| class IsolateA extends Isolate {
|
| IsolateA() : super.heavy();
|
| @@ -37,15 +37,12 @@ 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() {
|
| + test("light isolate can spawn heavy isolate", () {
|
| + new IsolateA().spawn().then(expectAsync1((SendPort port) {
|
| + port.call("launch nested!").then(expectAsync1((msg) {
|
| + Expect.equals(499, msg);
|
| + }));
|
| }));
|
| });
|
| }
|
| -
|
| -main() {
|
| - runTests([test]);
|
| -}
|
|
|