| Index: tests/standalone/src/StringStreamTest.dart
|
| diff --git a/tests/standalone/src/StringStreamTest.dart b/tests/standalone/src/StringStreamTest.dart
|
| index 966b1aa4287452225255adbd1ed8949e4e7060a7..7bb608290803750940938b9b76fee1645a3b9792 100644
|
| --- a/tests/standalone/src/StringStreamTest.dart
|
| +++ b/tests/standalone/src/StringStreamTest.dart
|
| @@ -117,19 +117,18 @@ void testReadLine1() {
|
| Expect.equals("Line", line);
|
| line = stream.readLine();
|
| Expect.equals(null, line);
|
| - Expect.equals(true, stream.closed);
|
| stage++;
|
| }
|
| }
|
|
|
| void streamClosed() {
|
| + Expect.equals(true, stream.closed);
|
| Expect.equals(2, stage);
|
| }
|
|
|
| stream.dataHandler = stringData;
|
| stream.closeHandler = streamClosed;
|
| s.write("Line".charCodes());
|
| - Expect.equals(2, stage);
|
| }
|
|
|
| void testReadLine2() {
|
| @@ -174,19 +173,18 @@ void testReadLine2() {
|
| Expect.equals("", line);
|
| line = stream.readLine();
|
| Expect.equals(null, line);
|
| - Expect.equals(true, stream.closed);
|
| stage++;
|
| }
|
| }
|
|
|
| void streamClosed() {
|
| Expect.equals(4, stage);
|
| + Expect.equals(true, stream.closed);
|
| }
|
|
|
| stream.lineHandler = stringData;
|
| stream.closeHandler = streamClosed;
|
| s.write("Line1\nLine2\r\nLine3\rLi".charCodes());
|
| - Expect.equals(4, stage);
|
| }
|
|
|
| main() {
|
|
|