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

Unified Diff: tests/standalone/io/process_run_output_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_test.dart ('k') | tests/standalone/io/process_std_io_script2.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/process_run_output_test.dart
diff --git a/tests/standalone/io/process_run_output_test.dart b/tests/standalone/io/process_run_output_test.dart
index efa98927a5cd2a84395fa31c40cdfd41da8a81e3..28d9fa980224e4323d38e3ff7f350b06be3f019a 100644
--- a/tests/standalone/io/process_run_output_test.dart
+++ b/tests/standalone/io/process_run_output_test.dart
@@ -6,10 +6,11 @@
// non-interactive processes started with Process.run.
import "package:expect/expect.dart";
+import "dart:convert";
import "dart:io";
import "process_test_util.dart";
-checkOutput(encoding, output) {
+checkOutput(String encoding, output) {
if (encoding == 'ascii') {
Expect.equals(output, 'abc');
} else if (encoding == 'latin1') {
@@ -22,14 +23,14 @@ checkOutput(encoding, output) {
}
}
-test(scriptFile, encoding, stream) {
+test(scriptFile, String encoding, stream) {
var enc;
if (encoding == 'ascii') {
- enc = Encoding.ASCII;
+ enc = ASCII;
} else if (encoding == 'latin1') {
- enc = Encoding.ISO_8859_1;
+ enc = LATIN1;
} else if (encoding == 'utf8') {
- enc = Encoding.UTF_8;
+ enc = UTF8;
} else if (encoding == 'binary') {
enc = null;
}
« no previous file with comments | « tests/standalone/io/file_test.dart ('k') | tests/standalone/io/process_std_io_script2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698