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

Unified Diff: tests/corelib/uri_test.dart

Issue 22909059: Some more removals of dart:utf. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change ArgumentError to FormatException. 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 | « sdk/lib/_internal/pub/lib/src/validator/utf8_readme.dart ('k') | tests/standalone/debugger/debug_lib.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/uri_test.dart
diff --git a/tests/corelib/uri_test.dart b/tests/corelib/uri_test.dart
index 0d671b74ad22b7285d8b5fe39fbcb2d247077cef..351c3b98d75af85df4f2db4615883fb06e31675d 100644
--- a/tests/corelib/uri_test.dart
+++ b/tests/corelib/uri_test.dart
@@ -5,7 +5,7 @@
library uriTest;
import "package:expect/expect.dart";
-import 'dart:utf';
+import 'dart:convert';
testUri(String uri, bool isAbsolute) {
Expect.equals(isAbsolute, Uri.parse(uri).isAbsolute);
@@ -205,7 +205,7 @@ main() {
// URI encode tests
// Create a string with code point 0x10000 encoded as a surrogate pair.
- var s = decodeUtf8([0xf0, 0x90, 0x80, 0x80]);
+ var s = UTF8.decode([0xf0, 0x90, 0x80, 0x80]);
Lasse Reichstein Nielsen 2013/08/27 09:22:42 Why not just "\u{10000}"? This is not a test if UT
floitsch 2013/08/27 09:33:58 It tests just below that these two strings are act
Expect.stringEquals("\u{10000}", s);
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/validator/utf8_readme.dart ('k') | tests/standalone/debugger/debug_lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698