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

Unified Diff: tests/standalone/io/process_stdin_transform_unsubscribe_script.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/process_std_io_script2.dart ('k') | tests/standalone/io/regress_10026_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/process_stdin_transform_unsubscribe_script.dart
diff --git a/tests/standalone/io/process_stdin_transform_unsubscribe_script.dart b/tests/standalone/io/process_stdin_transform_unsubscribe_script.dart
index 06b42d8c610d4292950ab92c7a0357881a91af12..910af044a9d30d4872e7f14151d4474de0447656 100644
--- a/tests/standalone/io/process_stdin_transform_unsubscribe_script.dart
+++ b/tests/standalone/io/process_stdin_transform_unsubscribe_script.dart
@@ -10,7 +10,7 @@ import "dart:io";
main() {
var subscription;
subscription = stdin
- .transform(new StringDecoder())
+ .transform(UTF8.decoder)
.transform(new LineSplitter())
.listen((String line) {
// Unsubscribe after the first line.
« no previous file with comments | « tests/standalone/io/process_std_io_script2.dart ('k') | tests/standalone/io/regress_10026_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698