Chromium Code Reviews| 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(); |
| - })); |
| - }); |
| -} |
|
Emily Fortuna
2012/04/20 20:06:19
Extra whitespace?
Siggi Cherem (dart-lang)
2012/04/21 00:03:43
empty line. Removed.
|
| main() { |
| - runTests([test]); |
| + test("constructor initialized correctly child isolate", () { |
|
Bob Nystrom
2012/04/20 22:31:36
"constructor correctly initialized child isolate"
Siggi Cherem (dart-lang)
2012/04/21 00:03:43
Done.
|
| + ConstructorTest test = new ConstructorTest(); |
| + test.spawn().then(later1((SendPort port) { |
| + port.call("ignored").then(later1((message) { |
| + Expect.equals(499, message); |
| + })); |
| + })); |
| + }); |
| } |