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

Unified Diff: utils/tests/peg/peg_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 | « utils/testrunner/layout_test_controller.dart ('k') | utils/tests/pub/test_pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/peg/peg_test.dart
diff --git a/utils/tests/peg/peg_test.dart b/utils/tests/peg/peg_test.dart
index c285b01d6221c1af73d587537f8482ddfbdf9469..59d2d5570b9c9ed825027cf5ff4d7f97ef8b6b94 100644
--- a/utils/tests/peg/peg_test.dart
+++ b/utils/tests/peg/peg_test.dart
@@ -68,9 +68,9 @@ testTEXT() {
TEXT(LEX(MANY(OR(['0','1']))),
(str, start, end) {
var r = 0;
- var zero = '0'.charCodeAt(0);
+ var zero = '0'.codeUnitAt(0);
for (int i = start; i < end; i++)
- r = r * 2 + (str.charCodeAt(i) - zero);
+ r = r * 2 + (str.codeUnitAt(i) - zero);
return r;
});
« no previous file with comments | « utils/testrunner/layout_test_controller.dart ('k') | utils/tests/pub/test_pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698