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

Unified Diff: tests/standalone/io/file_input_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/file_input_stream_test.dart
diff --git a/tests/standalone/io/file_input_stream_test.dart b/tests/standalone/io/file_input_stream_test.dart
index c46bd421d41ba2e256a92a940a283d0241b93b4e..e604f44df3d1b4164afbe2b84bf1184fa01470e2 100644
--- a/tests/standalone/io/file_input_stream_test.dart
+++ b/tests/standalone/io/file_input_stream_test.dart
@@ -33,7 +33,7 @@ void testStringInputStreamSync() {
void testInputStreamAsync() {
String fileName = getFilename("tests/standalone/io/readuntil_test.dat");
// File contains "Hello Dart\nwassup!\n"
- var expected = "Hello Dart\nwassup!\n".charCodes;
+ var expected = "Hello Dart\nwassup!\n".codeUnits;
InputStream x = (new File(fileName)).openInputStream();
var byteCount = 0;
x.onData = () {
@@ -95,7 +95,7 @@ void testChunkedInputStream() {
void testUnreadyInputStream() {
String fileName = getFilename("tests/standalone/io/readuntil_test.dat");
- var expected = "Hello Dart\nwassup!\n".charCodes;
+ var expected = "Hello Dart\nwassup!\n".codeUnits;
InputStream x = (new File(fileName)).openInputStream();
List<int> buffer = new List<int>.fixedLength(100);

Powered by Google App Engine
This is Rietveld 408576698