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

Unified Diff: tests/language/interceptor_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/instance_inline_test.dart ('k') | tests/language/invocation_mirror_invoke_on2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/interceptor_test.dart
diff --git a/tests/language/interceptor_test.dart b/tests/language/interceptor_test.dart
index e79f759c917b34c557607ad1c308e5ba18e65123..2fe247e94e5e96ba9f9d39541a8f441bf6bb89e3 100644
--- a/tests/language/interceptor_test.dart
+++ b/tests/language/interceptor_test.dart
@@ -6,28 +6,28 @@
// JavaScript primitives) in dart2js work.
class A {
- charCodeAt(a) => a;
+ codeUnitAt(a) => a;
}
main() {
var res = [[], 1, 'foo', new A()];
- Expect.throws(() => res[0].charCodeAt(1));
- Expect.throws(() => (res[0].charCodeAt)(1));
+ Expect.throws(() => res[0].codeUnitAt(1));
+ Expect.throws(() => (res[0].codeUnitAt)(1));
- Expect.throws(() => res[1].charCodeAt(1));
- Expect.throws(() => (res[1].charCodeAt)(1));
+ Expect.throws(() => res[1].codeUnitAt(1));
+ Expect.throws(() => (res[1].codeUnitAt)(1));
- Expect.equals(111, res[2].charCodeAt(1));
- Expect.equals(111, (res[2].charCodeAt)(1));
- Expect.throws(() => res[2].charCodeAt(1, 4));
- Expect.throws(() => res[2].charCodeAt());
- Expect.throws(() => (res[2].charCodeAt)(1, 4));
- Expect.throws(() => (res[2].charCodeAt)());
+ Expect.equals(111, res[2].codeUnitAt(1));
+ Expect.equals(111, (res[2].codeUnitAt)(1));
+ Expect.throws(() => res[2].codeUnitAt(1, 4));
+ Expect.throws(() => res[2].codeUnitAt());
+ Expect.throws(() => (res[2].codeUnitAt)(1, 4));
+ Expect.throws(() => (res[2].codeUnitAt)());
- Expect.equals(1, res[3].charCodeAt(1));
- Expect.equals(1, (res[3].charCodeAt)(1));
- Expect.throws(() => res[3].charCodeAt(1, 4));
- Expect.throws(() => res[3].charCodeAt());
- Expect.throws(() => (res[3].charCodeAt)(1, 4));
- Expect.throws(() => (res[3].charCodeAt)());
+ Expect.equals(1, res[3].codeUnitAt(1));
+ Expect.equals(1, (res[3].codeUnitAt)(1));
+ Expect.throws(() => res[3].codeUnitAt(1, 4));
+ Expect.throws(() => res[3].codeUnitAt());
+ Expect.throws(() => (res[3].codeUnitAt)(1, 4));
+ Expect.throws(() => (res[3].codeUnitAt)());
}
« no previous file with comments | « tests/language/instance_inline_test.dart ('k') | tests/language/invocation_mirror_invoke_on2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698