| Index: tests/isolate/isolate3_negative_test.dart
|
| diff --git a/tests/isolate/isolate3_negative_test.dart b/tests/isolate/isolate3_negative_test.dart
|
| index daba708999e063003b938a6e1f7aa1a6851a4f5e..47f599f8de3a134a7e7740100b32175806cb6ecc 100644
|
| --- a/tests/isolate/isolate3_negative_test.dart
|
| +++ b/tests/isolate/isolate3_negative_test.dart
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| @@ -17,15 +17,11 @@ class TestClass {
|
| num fld2;
|
| }
|
|
|
| -class Isolate3NegativeTest extends Isolate {
|
| - Isolate3NegativeTest() : super();
|
| -
|
| - void main() {
|
| - this.port.receive((ignored, replyTo) {
|
| - var tmp = new TestClass.named(10);
|
| - replyTo.send(tmp, null);
|
| - });
|
| - }
|
| +void entry() {
|
| + port.receive((ignored, replyTo) {
|
| + var tmp = new TestClass.named(10);
|
| + replyTo.send(tmp, null);
|
| + });
|
| }
|
|
|
| main() {
|
| @@ -33,9 +29,7 @@ main() {
|
| void msg_callback(var message) {
|
| // This test is a negative test and should not complete successfully.
|
| }
|
| - void spawn_callback(SendPort port) {
|
| - port.call("foo").then(expectAsync(msg_callback));
|
| - }
|
| - new Isolate3NegativeTest().spawn().then(expectAsync(spawn_callback));
|
| + SendPort port = spawnFunction(entry);
|
| + port.call("foo").then(expectAsync1(msg_callback));
|
| });
|
| }
|
|
|