| Index: tests/isolate/src/IsolateNegativeTest.dart
|
| diff --git a/tests/isolate/src/IsolateNegativeTest.dart b/tests/isolate/src/IsolateNegativeTest.dart
|
| index 090ba916e726a812d4d01deaf7197495bb3c4123..2909426520b99dd103d048d56985de752a9eb5a2 100644
|
| --- a/tests/isolate/src/IsolateNegativeTest.dart
|
| +++ b/tests/isolate/src/IsolateNegativeTest.dart
|
| @@ -6,7 +6,7 @@
|
|
|
| #library('IsolateNegativeTest');
|
| #import('dart:isolate');
|
| -#import('TestFramework.dart');
|
| +#import('../../../lib/unittest/unittest.dart');
|
|
|
| class IsolateNegativeTest extends Isolate {
|
| IsolateNegativeTest() : super();
|
| @@ -18,15 +18,12 @@ class IsolateNegativeTest extends Isolate {
|
| }
|
| }
|
|
|
| -void test(TestExpectation expect) {
|
| - expect.completes(new IsolateNegativeTest().spawn()).then((SendPort port) {
|
| - port.call("foo").then(expect.runs1((message) {
|
| - Expect.equals(true, "Expected fail"); // <=-------- Should fail here.
|
| - expect.succeeded();
|
| +main() {
|
| + test("ensure isolate code is executed", () {
|
| + new IsolateNegativeTest().spawn().then(later1((SendPort port) {
|
| + port.call("foo").then(later1((message) {
|
| + Expect.equals(true, "Expected fail"); // <=-------- Should fail here.
|
| + }));
|
| }));
|
| });
|
| }
|
| -
|
| -main() {
|
| - runTests([test]);
|
| -}
|
|
|