Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1251)

Unified Diff: tests/standalone/src/StringStreamTest.dart

Issue 8885032: Improve the event handling for string input stream (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebased Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/standalone/src/StatusFileParserTest.dart ('k') | tests/standalone/src/readline_test1.dat » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « tests/standalone/src/StatusFileParserTest.dart ('k') | tests/standalone/src/readline_test1.dat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698