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

Unified Diff: tests/language/static_inline_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/optimized_string_charcodeat_test.dart ('k') | tests/language/string_escapes_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/static_inline_test.dart
diff --git a/tests/language/static_inline_test.dart b/tests/language/static_inline_test.dart
index 4c5ad9a9f0c1661937b3c64a0bc50a64e0f7851f..5163b3d7d83770c49ee13c2f96d99d56999152b9 100644
--- a/tests/language/static_inline_test.dart
+++ b/tests/language/static_inline_test.dart
@@ -16,7 +16,7 @@ class StringScanner {
}
static int charAt(index)
- => (string.length > index) ? string.charCodeAt(index) : -1;
+ => (string.length > index) ? string.codeUnitAt(index) : -1;
}
void main() {
@@ -26,4 +26,4 @@ void main() {
Expect.equals(0x7A, scanner.nextByte(false)); // Expect z.
Expect.equals(0x39, scanner.nextByte(false)); // Expect 9.
Expect.equals(-1, scanner.nextByte(false));
-}
+}
« no previous file with comments | « tests/language/optimized_string_charcodeat_test.dart ('k') | tests/language/string_escapes_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698