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

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

Issue 11883033: Fixed utf8 encoding/decoding issues in the testing scripts (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « no previous file | tools/testing/dart/multitest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/test_runner_test.dart
diff --git a/tests/standalone/io/test_runner_test.dart b/tests/standalone/io/test_runner_test.dart
index b679dc5b775356c2ba1457fa8ab7b65a8b1b8961..c4921615dcd229498281578bcc4b79d9fabb3f4b 100644
--- a/tests/standalone/io/test_runner_test.dart
+++ b/tests/standalone/io/test_runner_test.dart
@@ -5,6 +5,7 @@
import "dart:io";
import "dart:isolate";
import "dart:async";
+import "dart:utf";
import "../../../tools/testing/dart/test_runner.dart";
import "../../../tools/testing/dart/status_file_parser.dart";
import "../../../tools/testing/dart/test_options.dart";
@@ -22,9 +23,9 @@ class TestController {
throw "Unexpected output: ${output.result}";
}
print("stdout: ");
- print(new String.fromCharCodes(output.stdout));
+ print(decodeUtf8(output.stdout));
print("stderr: ");
- print(new String.fromCharCodes(output.stderr));
+ print(decodeUtf8(output.stderr));
print("Time: ${output.time}");
print("Exit code: ${output.exitCode}");
« no previous file with comments | « no previous file | tools/testing/dart/multitest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698