| Index: tests/compiler/dart2js_extra/consistent_codeUnitAt_error_test.dart
|
| diff --git a/tests/compiler/dart2js_extra/consistent_codeUnitAt_error_test.dart b/tests/compiler/dart2js_extra/consistent_codeUnitAt_error_test.dart
|
| index 8d3929ffd52ef4c3c21a01c8b4c513bb112ffeb1..9c49e0e7ebfd3aba0ad13254459ae48c0a3511b9 100644
|
| --- a/tests/compiler/dart2js_extra/consistent_codeUnitAt_error_test.dart
|
| +++ b/tests/compiler/dart2js_extra/consistent_codeUnitAt_error_test.dart
|
| @@ -33,20 +33,19 @@ void check(String name, f1, f2, [f3, f4]) {
|
| if (f4 != null) check2(name, 'f1', f1, 'f4', f4);
|
| }
|
|
|
| -
|
| class TooHigh {
|
| static f1() {
|
| - return confuse('AB').codeUnitAt(3); // dynamic receiver.
|
| + return confuse('AB').codeUnitAt(3); // dynamic receiver.
|
| }
|
|
|
| static f2() {
|
| - var a = confuse(true) ? 'AB' : 'ABCDE'; // String with unknown length.
|
| + var a = confuse(true) ? 'AB' : 'ABCDE'; // String with unknown length.
|
| var i = confuse(3);
|
| return a.codeUnitAt(i);
|
| }
|
|
|
| static f3() {
|
| - var a = confuse(true) ? 'AB' : 'ABCDE'; // String with unknown length.
|
| + var a = confuse(true) ? 'AB' : 'ABCDE'; // String with unknown length.
|
| return a.codeUnitAt(3);
|
| }
|
|
|
| @@ -57,23 +56,23 @@ class TooHigh {
|
|
|
| class Negative {
|
| static f1() {
|
| - return confuse('AB').codeUnitAt(-3); // dynamic receiver.
|
| + return confuse('AB').codeUnitAt(-3); // dynamic receiver.
|
| }
|
|
|
| static f2() {
|
| - var a = confuse(true) ? 'AB' : 'ABCDE'; // String with unknown length.
|
| + var a = confuse(true) ? 'AB' : 'ABCDE'; // String with unknown length.
|
| var i = confuse(-3);
|
| return a.codeUnitAt(i);
|
| }
|
|
|
| static f3() {
|
| - var a = confuse(true) ? 'AB' : 'ABCDE'; // String with unknown length.
|
| + var a = confuse(true) ? 'AB' : 'ABCDE'; // String with unknown length.
|
| var i = confuse(true) ? -3 : 0;
|
| return a.codeUnitAt(i);
|
| }
|
|
|
| static f4() {
|
| - var a = confuse(true) ? 'AB' : 'ABCDE'; // String with unknown length.
|
| + var a = confuse(true) ? 'AB' : 'ABCDE'; // String with unknown length.
|
| return a.codeUnitAt(-3);
|
| }
|
|
|
| @@ -84,17 +83,17 @@ class Negative {
|
|
|
| class Empty {
|
| static f1() {
|
| - return confuse('').codeUnitAt(0); // dynamic receiver.
|
| + return confuse('').codeUnitAt(0); // dynamic receiver.
|
| }
|
|
|
| static f2() {
|
| - var a = confuse(true) ? '' : 'ABCDE'; // Empty String with unknown length.
|
| + var a = confuse(true) ? '' : 'ABCDE'; // Empty String with unknown length.
|
| var i = confuse(true) ? 0 : 1;
|
| return a.codeUnitAt(i);
|
| }
|
|
|
| static f3() {
|
| - var a = confuse(true) ? '' : 'ABCDE'; // Empty String with unknown length.
|
| + var a = confuse(true) ? '' : 'ABCDE'; // Empty String with unknown length.
|
| return a.codeUnitAt(0);
|
| }
|
|
|
| @@ -105,17 +104,17 @@ class Empty {
|
|
|
| class BadType {
|
| static f1() {
|
| - return confuse('AB').codeUnitAt('a'); // dynamic receiver.
|
| + return confuse('AB').codeUnitAt('a'); // dynamic receiver.
|
| }
|
|
|
| static f2() {
|
| - var a = confuse(true) ? 'AB' : 'ABCDE'; // String with unknown length.
|
| + var a = confuse(true) ? 'AB' : 'ABCDE'; // String with unknown length.
|
| var i = confuse('a');
|
| return a.codeUnitAt(i);
|
| }
|
|
|
| static f3() {
|
| - var a = confuse(true) ? 'AB' : 'ABCDE'; // String with unknown length.
|
| + var a = confuse(true) ? 'AB' : 'ABCDE'; // String with unknown length.
|
| return a.codeUnitAt('a');
|
| }
|
|
|
|
|