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

Unified Diff: utils/tests/string_encoding/unicode_test.dart

Issue 11411092: Revert "Add some support for the code-point code-unit distinction." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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/utils/utils.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/string_encoding/unicode_test.dart
diff --git a/utils/tests/string_encoding/unicode_test.dart b/utils/tests/string_encoding/unicode_test.dart
index 054ff45e01933ff419b39b9cf7e8877e10f864bd..3fb23a64a388c767ab32aced2810e2452dfdc169 100755
--- a/utils/tests/string_encoding/unicode_test.dart
+++ b/utils/tests/string_encoding/unicode_test.dart
@@ -24,24 +24,24 @@ class UnicodeTests extends TestClass {
void registerTests(TestSuite suite) {
register("testCodepointsToString", testCodepointsToString, suite);
- register("testStringCharCodes", testStringCharCodes, suite);
- register("testEmptyStringFromCharCodes", testEmptyStringFromCharCodes, suite);
- register("testEmptyStringCharCodes", testEmptyStringCharCodes, suite);
+ register("testStringToCodepoints", testStringToCodepoints, suite);
+ register("testEmptyCodepointsToString", testEmptyCodepointsToString, suite);
+ register("testEmptyStringToCodepoints", testEmptyStringToCodepoints, suite);
}
- void testStringCharCodes() {
- Expect.listEquals(testCodepoints, testPhrase.charCodes());
+ void testStringToCodepoints() {
+ Expect.listEquals(testCodepoints, stringToCodepoints(testPhrase));
}
void testCodepointsToString() {
- Expect.stringEquals(testPhrase, new String.fromCharCodes(testCodepoints));
+ Expect.stringEquals(testPhrase, codepointsToString(testCodepoints));
}
- void testEmptyStringFromCharCodes() {
- Expect.stringEquals("", new String.fromCharCodes(<int>[]));
+ void testEmptyCodepointsToString() {
+ Expect.stringEquals("", codepointsToString(<int>[]));
}
- void testEmptyStringCharCodes() {
- Expect.listEquals([], "".charCodes());
+ void testEmptyStringToCodepoints() {
+ Expect.listEquals([], stringToCodepoints(""));
}
}
« no previous file with comments | « tests/utils/utils.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698