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

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

Issue 22872012: Remove Encoding-enum from dart:io and add interface in dart:convert. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typo. Created 7 years, 4 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/file_error_test.dart ('k') | tests/standalone/io/file_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 021e19e68215f7d0f16336e1e7273180fc6fd264..824cfce9f334f240bcccda2c0c37b4847529c200 100644
--- a/tests/standalone/io/file_input_stream_test.dart
+++ b/tests/standalone/io/file_input_stream_test.dart
@@ -20,7 +20,7 @@ void testStringLineSplitter() {
File file = new File(fileName);
int linesRead = 0;
var lineStream = file.openRead()
- .transform(new StringDecoder())
+ .transform(UTF8.decoder)
.transform(new LineSplitter());
lineStream.listen((line) {
linesRead++;
@@ -232,7 +232,7 @@ void testStringLineSplitterEnding(String name, int length) {
File file = new File(fileName);
Expect.equals(length, file.openSync().lengthSync());
var lineStream = file.openRead()
- .transform(new StringDecoder())
+ .transform(UTF8.decoder)
.transform(new LineSplitter());
int lineCount = 0;
lineStream.listen(
« no previous file with comments | « tests/standalone/io/file_error_test.dart ('k') | tests/standalone/io/file_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698