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

Unified Diff: tests/lib/convert/utf8_test.dart

Issue 19187002: Replace old utf8 decoder with new one. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 5 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/lib/convert/utf83_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/convert/utf8_test.dart
diff --git a/tests/lib/utf/utf8_test.dart b/tests/lib/convert/utf8_test.dart
similarity index 95%
copy from tests/lib/utf/utf8_test.dart
copy to tests/lib/convert/utf8_test.dart
index 3fdd8a84d4c2fff294e074ade1298803467c0347..4fa02970df59d891df5c7f068684261bd7ac50ed 100644
--- a/tests/lib/utf/utf8_test.dart
+++ b/tests/lib/convert/utf8_test.dart
@@ -4,9 +4,9 @@
library utf8_test;
import "package:expect/expect.dart";
-import 'dart:utf';
+import 'dart:convert';
-String decode(List<int> bytes) => decodeUtf8(bytes);
+String decode(List<int> bytes) => new Utf8Decoder().convert(bytes);
main() {
// Google favorite: "Îñţérñåţîöñåļîžåţîờñ".
« no previous file with comments | « tests/lib/convert/utf83_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698