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

Unified Diff: tests/standalone/io/string_stream_test.dart

Issue 11263040: Make String.charCodes a getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 2 months 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/io/socket_stream_close_test.dart ('k') | utils/peg/pegparser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/string_stream_test.dart
diff --git a/tests/standalone/io/string_stream_test.dart b/tests/standalone/io/string_stream_test.dart
index 7084a07033ff6ab3404a1026cefaf77d05dc001c..ade6c8d695dd43ad64b7709599ae278741ad6fc2 100644
--- a/tests/standalone/io/string_stream_test.dart
+++ b/tests/standalone/io/string_stream_test.dart
@@ -97,7 +97,7 @@ void testReadLine1() {
stream.onData = stringData;
stream.onClosed = streamClosed;
- s.write("Line".charCodes());
+ s.write("Line".charCodes);
}
void testReadLine2() {
@@ -121,7 +121,7 @@ void testReadLine2() {
Expect.equals(2, stream.available());
Expect.equals(null, line);
stage++;
- s.write("ne4\n".charCodes());
+ s.write("ne4\n".charCodes);
} else if (stage == 1) {
Expect.equals(6, stream.available());
line = stream.readLine();
@@ -130,7 +130,7 @@ void testReadLine2() {
line = stream.readLine();
Expect.equals(null, line);
stage++;
- s.write("\n\n\r\n\r\n\r\r".charCodes());
+ s.write("\n\n\r\n\r\n\r\r".charCodes);
} else if (stage == 2) {
// Expect 5 empty lines. As long as the stream is not closed the
// final \r cannot be interpreted as a end of line.
@@ -162,7 +162,7 @@ void testReadLine2() {
stream.onLine = stringData;
stream.onClosed = streamClosed;
- s.write("Line1\nLine2\r\nLine3\rLi".charCodes());
+ s.write("Line1\nLine2\r\nLine3\rLi".charCodes);
}
void testReadChunks() {
@@ -198,7 +198,7 @@ void testReadChunks() {
Expect.equals(0, stream.available());
}
- s.write("ABCD1234".charCodes());
+ s.write("ABCD1234".charCodes);
stream.onData = stringData;
}
@@ -224,7 +224,7 @@ void testReadMixed() {
Expect.equals(null, data);
data = stream.read(4);
Expect.equals("1234", data);
- s.write("A\r\nBCD\n1234".charCodes());
+ s.write("A\r\nBCD\n1234".charCodes);
stage++;
} else if (stage == 1) {
Expect.equals(11, stream.available());
@@ -243,7 +243,7 @@ void testReadMixed() {
Expect.equals(null, data);
data = stream.read(4);
Expect.equals("1234", data);
- s.write("A\r\nBCD\n1234".charCodes());
+ s.write("A\r\nBCD\n1234".charCodes);
stage++;
} else if (stage == 2) {
Expect.equals(11, stream.available());
@@ -264,7 +264,7 @@ void testReadMixed() {
Expect.equals(true, stream.closed);
}
- s.write("A\r\nBCD\n1234".charCodes());
+ s.write("A\r\nBCD\n1234".charCodes);
stream.onData = stringData;
stream.onClosed = streamClosed;
}
« no previous file with comments | « tests/standalone/io/socket_stream_close_test.dart ('k') | utils/peg/pegparser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698