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

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: 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
Index: tests/language/string_test.dart
diff --git a/tests/language/string_test.dart b/tests/language/string_test.dart
index 9e843966a44273ee15ed498e2cd3f823b9f92a20..eb1b17af70737d52986a808b540c9e519714b263 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));
}
}

Powered by Google App Engine
This is Rietveld 408576698