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

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

Issue 12282038: Remove deprecated string features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
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 4ef05349556e01b77c90265a3da162765c6429bb..ec3dcb962d9731121d5c7d7c561522c0798a0a61 100644
--- a/tests/standalone/io/string_stream_test.dart
+++ b/tests/standalone/io/string_stream_test.dart
@@ -104,7 +104,7 @@ void testReadLine1() {
stream.onData = stringData;
stream.onClosed = streamClosed;
- s.write("Line".charCodes);
+ s.write("Line".codeUnits);
}
void testReadLine2() {
@@ -128,7 +128,7 @@ void testReadLine2() {
Expect.equals(2, stream.available());
Expect.equals(null, line);
stage++;
- s.write("ne4\n".charCodes);
+ s.write("ne4\n".codeUnits);
} else if (stage == 1) {
Expect.equals(6, stream.available());
line = stream.readLine();
@@ -137,7 +137,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".codeUnits);
} 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.
@@ -169,7 +169,7 @@ void testReadLine2() {
stream.onLine = stringData;
stream.onClosed = streamClosed;
- s.write("Line1\nLine2\r\nLine3\rLi".charCodes);
+ s.write("Line1\nLine2\r\nLine3\rLi".codeUnits);
}
void testReadChunks() {
@@ -205,7 +205,7 @@ void testReadChunks() {
Expect.equals(0, stream.available());
}
- s.write("ABCD1234".charCodes);
+ s.write("ABCD1234".codeUnits);
stream.onData = stringData;
}
@@ -231,7 +231,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".codeUnits);
stage++;
} else if (stage == 1) {
Expect.equals(11, stream.available());
@@ -250,7 +250,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".codeUnits);
stage++;
} else if (stage == 2) {
Expect.equals(11, stream.available());
@@ -271,7 +271,7 @@ void testReadMixed() {
Expect.equals(true, stream.closed);
}
- s.write("A\r\nBCD\n1234".charCodes);
+ s.write("A\r\nBCD\n1234".codeUnits);
stream.onData = stringData;
stream.onClosed = streamClosed;
}

Powered by Google App Engine
This is Rietveld 408576698