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

Unified Diff: tests/standalone/io/process_std_io_script2.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
Index: tests/standalone/io/process_std_io_script2.dart
diff --git a/tests/standalone/io/process_std_io_script2.dart b/tests/standalone/io/process_std_io_script2.dart
index db5792956cd037e4a0ad17bf5904a51eb2816f50..0bd1a3e580edf1064e2eb65f066d30b216316e6f 100644
--- a/tests/standalone/io/process_std_io_script2.dart
+++ b/tests/standalone/io/process_std_io_script2.dart
@@ -5,6 +5,7 @@
// Utility script to echo strings in various formats to stdout or
// stderr.
+import "dart:convert";
import "dart:io";
writeData(data, encoding, stream) {
@@ -34,11 +35,11 @@ main() {
if (options.arguments.length > 1) {
var stream = options.arguments[1];
if (options.arguments[0] == "ascii") {
- writeData(asciiString, Encoding.ASCII, stream);
+ writeData(asciiString, ASCII, stream);
} else if (options.arguments[0] == "latin1") {
- writeData(latin1String, Encoding.ISO_8859_1, stream);
+ writeData(latin1String, LATIN1, stream);
} else if (options.arguments[0] == "utf8") {
- writeData(utf8String, Encoding.UTF_8, stream);
+ writeData(utf8String, UTF8, stream);
} else if (options.arguments[0] == "binary") {
writeData(binary, null, stream);
}
« no previous file with comments | « tests/standalone/io/process_run_output_test.dart ('k') | tests/standalone/io/process_stdin_transform_unsubscribe_script.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698