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

Unified Diff: tests/language/optimized_constant_array_string_access_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
Index: tests/language/optimized_constant_array_string_access_test.dart
diff --git a/tests/language/optimized_constant_array_string_access_test.dart b/tests/language/optimized_constant_array_string_access_test.dart
index 2e0b1ba44da0f306136fc3cae5001c0ec7dd5776..391d971286f09ef33429b55b69873bf0c4598f88 100644
--- a/tests/language/optimized_constant_array_string_access_test.dart
+++ b/tests/language/optimized_constant_array_string_access_test.dart
@@ -4,10 +4,10 @@
// Test optimized constant string and constant array access.
-int testConstantStringAndIndexCharCodeAt() {
+int testConstantStringAndIndexCodeUnitAt() {
int test(b) {
- if (b) return "hest".charCodeAt(400);
- return "hest".charCodeAt(2);
+ if (b) return "hest".codeUnitAt(400);
+ return "hest".codeUnitAt(2);
}
Expect.throws(() => test(true));
@@ -43,7 +43,7 @@ int testNonSmiIndex() {
main() {
- testConstantStringAndIndexCharCodeAt();
+ testConstantStringAndIndexCodeUnitAt();
testConstantArrayAndIndexAt();
testNonSmiIndex();
}
« no previous file with comments | « tests/language/invocation_mirror_invoke_on2_test.dart ('k') | tests/language/optimized_string_charcodeat_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698