| Index: tests/standalone/src/ListOutputStreamTest.dart
|
| diff --git a/tests/standalone/src/ListOutputStreamTest.dart b/tests/standalone/src/ListOutputStreamTest.dart
|
| index 5603eea2b7c1cd910083840192b05b4a912049e5..cb6ceacb9ebca1a59caf83dd4ed2ae7e4b271a4b 100644
|
| --- a/tests/standalone/src/ListOutputStreamTest.dart
|
| +++ b/tests/standalone/src/ListOutputStreamTest.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.
|
|
|
| @@ -18,17 +18,17 @@ void testEmptyListOutputStream2() {
|
| OutputStream stream = new ListOutputStream();
|
| ReceivePort donePort = new ReceivePort();
|
|
|
| - void onNoPendingWrite() {
|
| + void onNoPendingWrites() {
|
| stream.close();
|
| }
|
|
|
| - void onClose() {
|
| + void onClosed() {
|
| Expect.equals(null, stream.contents());
|
| donePort.toSendPort().send(null);
|
| }
|
|
|
| - stream.noPendingWriteHandler = onNoPendingWrite;
|
| - stream.closeHandler = onClose;
|
| + stream.onNoPendingWrites = onNoPendingWrites;
|
| + stream.onClosed = onClosed;
|
|
|
| donePort.receive((x,y) => donePort.close());
|
| }
|
| @@ -52,7 +52,7 @@ void testListOutputStream2() {
|
| OutputStream stream = new ListOutputStream();
|
| ReceivePort donePort = new ReceivePort();
|
| int stage = 0;
|
| - void onNoPendingWrite() {
|
| + void onNoPendingWrites() {
|
| switch (stage) {
|
| case 0:
|
| stream.write([1, 2]);
|
| @@ -70,7 +70,7 @@ void testListOutputStream2() {
|
| stage++;
|
| }
|
|
|
| - void onClose() {
|
| + void onClosed() {
|
| Expect.equals(4, stage);
|
| var contents = stream.contents();
|
| Expect.equals(5, contents.length);
|
| @@ -79,8 +79,8 @@ void testListOutputStream2() {
|
| donePort.toSendPort().send(null);
|
| }
|
|
|
| - stream.noPendingWriteHandler = onNoPendingWrite;
|
| - stream.closeHandler = onClose;
|
| + stream.onNoPendingWrites = onNoPendingWrites;
|
| + stream.onClosed = onClosed;
|
|
|
| donePort.receive((x,y) => donePort.close());
|
| }
|
|
|