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

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

Issue 16959004: Remove Encoding.BINARY (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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_run_output_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4701be14b80d14ae20ffb597db46746a06e0e32e..db5792956cd037e4a0ad17bf5904a51eb2816f50 100644
--- a/tests/standalone/io/process_std_io_script2.dart
+++ b/tests/standalone/io/process_std_io_script2.dart
@@ -9,14 +9,14 @@ import "dart:io";
writeData(data, encoding, stream) {
if (stream == "stdout") {
- if (encoding == Encoding.BINARY) {
+ if (encoding == null) {
stdout.add(data);
} else {
stdout.encoding = encoding;
stdout.write(data);
}
} else if (stream == "stderr") {
- if (encoding == Encoding.BINARY) {
+ if (encoding == null) {
stderr.add(data);
} else {
stderr.encoding = encoding;
@@ -40,7 +40,7 @@ main() {
} else if (options.arguments[0] == "utf8") {
writeData(utf8String, Encoding.UTF_8, stream);
} else if (options.arguments[0] == "binary") {
- writeData(binary, Encoding.BINARY, stream);
+ writeData(binary, null, stream);
}
}
}
« no previous file with comments | « tests/standalone/io/process_run_output_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698