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)()); |
} |