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

Unified Diff: tests/language/string_test.dart

Issue 12282038: Remove deprecated string features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head Created 7 years, 10 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/language/string_escapes_test.dart ('k') | tests/lib/crypto/base64_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/string_test.dart
diff --git a/tests/language/string_test.dart b/tests/language/string_test.dart
index 52cdf71ab98b5b61be401c12e3e760e2ea783bae..546274b226b5bf71f755fab00180a1cea9cf2ee0 100644
--- a/tests/language/string_test.dart
+++ b/tests/language/string_test.dart
@@ -16,7 +16,7 @@ class StringTest {
String str = "string";
for (int i = 0; i < str.length; i++) {
Expect.equals(true, str[i] is String);
- Expect.equals(true, str.charCodeAt(i) is int);
+ Expect.equals(true, str.codeUnitAt(i) is int);
}
}
@@ -42,7 +42,7 @@ class StringTest {
static testCharCodes() {
String s = new String.fromCharCodes(const [0x41, 0xC1, 0x424]);
Expect.equals("A", s[0]);
- Expect.equals(0x424, s.charCodeAt(2));
+ Expect.equals(0x424, s.codeUnitAt(2));
}
}
« no previous file with comments | « tests/language/string_escapes_test.dart ('k') | tests/lib/crypto/base64_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698