| Index: tests/isolate/src/IsolateComplexMessagesTest.dart
|
| diff --git a/tests/isolate/src/IsolateComplexMessagesTest.dart b/tests/isolate/src/IsolateComplexMessagesTest.dart
|
| index 135f7c6836af37cc840a72c5cd159f3a1517389c..f19d444ddee064c09556d42fc832c334d4ce7797 100644
|
| --- a/tests/isolate/src/IsolateComplexMessagesTest.dart
|
| +++ b/tests/isolate/src/IsolateComplexMessagesTest.dart
|
| @@ -7,22 +7,22 @@
|
|
|
| #library('IsolateComplexMessagesTest');
|
| #import('dart:isolate');
|
| -#import('TestFramework.dart');
|
| +#import('../../../lib/unittest/unittest.dart');
|
|
|
| +main() {
|
| + test("complex messages are serialized correctly", () {
|
| + new LogIsolate().spawn().then(expectAsync1((SendPort remote) {
|
|
|
| -void test(TestExpectation expect) {
|
| - expect.completes(new LogIsolate().spawn()).then((SendPort remote) {
|
| -
|
| - remote.send(1, null);
|
| - remote.send("Hello", null);
|
| - remote.send("World", null);
|
| - remote.send(const [null, 1, 2, 3, 4], null);
|
| - remote.send(const [1, 2.0, true, false, 0xffffffffff], null);
|
| - remote.send(const ["Hello", "World", 0xffffffffff], null);
|
| - // Shutdown the LogRunner.
|
| - remote.call(-1).then(expect.runs1((int message) {
|
| - Expect.equals(6, message);
|
| - expect.succeeded();
|
| + remote.send(1, null);
|
| + remote.send("Hello", null);
|
| + remote.send("World", null);
|
| + remote.send(const [null, 1, 2, 3, 4], null);
|
| + remote.send(const [1, 2.0, true, false, 0xffffffffff], null);
|
| + remote.send(const ["Hello", "World", 0xffffffffff], null);
|
| + // Shutdown the LogRunner.
|
| + remote.call(-1).then(expectAsync1((int message) {
|
| + Expect.equals(6, message);
|
| + }));
|
| }));
|
| });
|
| }
|
| @@ -77,7 +77,3 @@ class LogIsolate extends Isolate {
|
| });
|
| }
|
| }
|
| -
|
| -main() {
|
| - runTests([test]);
|
| -}
|
|
|