| Index: tests/isolate/src/ConstructorTest.dart
|
| diff --git a/tests/isolate/src/ConstructorTest.dart b/tests/isolate/src/ConstructorTest.dart
|
| index c467e427fc297c6a20fd9a20083eb40eba3acb5a..9829cfadb7c2e06f84a32579bc4edd5fa33f851f 100644
|
| --- a/tests/isolate/src/ConstructorTest.dart
|
| +++ b/tests/isolate/src/ConstructorTest.dart
|
| @@ -4,7 +4,7 @@
|
|
|
| #library("ConstructorTest");
|
| #import("dart:isolate");
|
| -#import("TestFramework.dart");
|
| +#import('../../../lib/unittest/unittest.dart');
|
|
|
| class ConstructorTest extends Isolate {
|
| final int field;
|
| @@ -18,16 +18,14 @@ class ConstructorTest extends Isolate {
|
| }
|
| }
|
|
|
| -void test(TestExpectation expect) {
|
| - ConstructorTest test = new ConstructorTest();
|
| - expect.completes(test.spawn()).then((SendPort port) {
|
| - port.call("ignored").then(expect.runs1((message) {
|
| - Expect.equals(499, message);
|
| - expect.succeeded();
|
| - }));
|
| - });
|
| -}
|
|
|
| main() {
|
| - runTests([test]);
|
| + test("constructor initialized correctly child isolate", () {
|
| + ConstructorTest test = new ConstructorTest();
|
| + test.spawn().then(later1((SendPort port) {
|
| + port.call("ignored").then(later1((message) {
|
| + Expect.equals(499, message);
|
| + }));
|
| + }));
|
| + });
|
| }
|
|
|