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

Unified Diff: tests/compiler/dart2js_extra/consistent_codeUnitAt_error_test.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: Created 4 years, 3 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
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');
}

Powered by Google App Engine
This is Rietveld 408576698