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

Unified Diff: tests/language/instance_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/char_escape_test.dart ('k') | tests/language/interceptor_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/instance_inline_test.dart
diff --git a/tests/language/instance_inline_test.dart b/tests/language/instance_inline_test.dart
index e45dde29f53bbc92b0f3833749f23081c65ea71f..fefdf21ae19def9321b94d5854fcbeaa51e938e2 100644
--- a/tests/language/instance_inline_test.dart
+++ b/tests/language/instance_inline_test.dart
@@ -15,7 +15,7 @@ class StringScanner {
int nextByte() => charAt(++byteOffset);
int charAt(index)
- => (string.length > index) ? string.charCodeAt(index) : -1;
+ => (string.length > index) ? string.codeUnitAt(index) : -1;
}
void main() {
@@ -24,4 +24,4 @@ void main() {
Expect.equals(0x7A, scanner.nextByte()); // Expect z.
Expect.equals(0x39, scanner.nextByte()); // Expect 9.
Expect.equals(-1, scanner.nextByte());
-}
+}
« no previous file with comments | « tests/language/char_escape_test.dart ('k') | tests/language/interceptor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698