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

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

Issue 12282038: Remove deprecated string features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head 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
« no previous file with comments | « tests/standalone/io/string_decoder_test.dart ('k') | tests/utils/utf_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/string_transformer_test.dart
diff --git a/tests/standalone/io/string_transformer_test.dart b/tests/standalone/io/string_transformer_test.dart
index 16b1b3f8e39fc1416a86a4bb929174956bd55ed8..38986c2b8116f905f28be6676b3a0b3234d8cad9 100644
--- a/tests/standalone/io/string_transformer_test.dart
+++ b/tests/standalone/io/string_transformer_test.dart
@@ -114,7 +114,7 @@ void testReadLine1() {
stringData,
onDone: streamClosed);
- controller.add("Line".charCodes);
+ controller.add("Line".codeUnits);
}
void testReadLine2() {
@@ -138,7 +138,7 @@ void testReadLine2() {
Expect.equals("Line3", line);
subStage = 0;
stage++;
- controller.add("ne4\n".charCodes);
+ controller.add("ne4\n".codeUnits);
} else {
Expect.fail("Stage 0 failed");
}
@@ -147,7 +147,7 @@ void testReadLine2() {
Expect.equals("Line4", line);
subStage = 0;
stage++;
- controller.add("\n\n\r\n\r\n\r\r".charCodes);
+ controller.add("\n\n\r\n\r\n\r\r".codeUnits);
} else {
Expect.fail("Stage 1 failed");
}
@@ -178,7 +178,7 @@ void testReadLine2() {
Expect.equals(0, subStage);
});
- controller.add("Line1\nLine2\r\nLine3\rLi".charCodes);
+ controller.add("Line1\nLine2\r\nLine3\rLi".codeUnits);
}
class TestException implements Exception {
« no previous file with comments | « tests/standalone/io/string_decoder_test.dart ('k') | tests/utils/utf_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698