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

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

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test 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_index_error_string_test.dart
diff --git a/tests/compiler/dart2js_extra/consistent_index_error_string_test.dart b/tests/compiler/dart2js_extra/consistent_index_error_string_test.dart
index 836a13d7a2caf7115f55f3c2459fe5aa3238e0c7..898933f2fb01092af1f2126211b63e4dc78ab893 100644
--- a/tests/compiler/dart2js_extra/consistent_index_error_string_test.dart
+++ b/tests/compiler/dart2js_extra/consistent_index_error_string_test.dart
@@ -15,7 +15,7 @@ class TooHigh {
static load1() {
var a = confuse(true) ? 'AB' : 'ABCDE';
try {
- return confuse(a)[3]; // dynamic receiver for indexer.
+ return confuse(a)[3]; // dynamic receiver for indexer.
} catch (e) {
return e;
}
@@ -30,9 +30,10 @@ class TooHigh {
}
Expect.fail('unreached');
}
+
static load2x(i) {
var a = confuse(true) ? 'AB' : 'ABCDE';
- return a[i]; // 'a' is String of unknown length.
+ return a[i]; // 'a' is String of unknown length.
}
static test() {
@@ -47,7 +48,7 @@ class Negative {
static load1() {
var a = confuse(true) ? 'AB' : 'ABCDE';
try {
- return confuse(a)[-3]; // dynamic receiver for indexer.
+ return confuse(a)[-3]; // dynamic receiver for indexer.
} catch (e) {
return e;
}
@@ -62,9 +63,10 @@ class Negative {
}
Expect.fail('unreached');
}
+
static load2x(i) {
var a = confuse(true) ? 'AB' : 'ABCDE';
- return a[i]; // 'a' is String of unknown length.
+ return a[i]; // 'a' is String of unknown length.
}
static test() {
@@ -79,7 +81,7 @@ class Empty {
static load1() {
var a = confuse(true) ? '' : 'ABCDE';
try {
- return confuse(a)[-3]; // dynamic receiver for indexer.
+ return confuse(a)[-3]; // dynamic receiver for indexer.
} catch (e) {
return e;
}
@@ -94,9 +96,10 @@ class Empty {
}
Expect.fail('unreached');
}
+
static load2x(i) {
var a = confuse(true) ? '' : 'ABCDE';
- return a[i]; // 'a' is String of unknown length.
+ return a[i]; // 'a' is String of unknown length.
}
static test() {
@@ -111,7 +114,7 @@ class BadType {
static load1() {
var a = confuse(true) ? 'AB' : 'ABCDE';
try {
- return confuse(a)['a']; // dynamic receiver for indexer.
+ return confuse(a)['a']; // dynamic receiver for indexer.
} catch (e) {
return e;
}
@@ -126,9 +129,10 @@ class BadType {
}
Expect.fail('unreached');
}
+
static load2x(i) {
var a = confuse(true) ? 'AB' : 'ABCDE';
- return a[i]; // 'a' is String of unknown length.
+ return a[i]; // 'a' is String of unknown length.
}
static test() {

Powered by Google App Engine
This is Rietveld 408576698