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

Unified Diff: tests/compiler/dart2js_extra/consistent_index_error_array_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_array_test.dart
diff --git a/tests/compiler/dart2js_extra/consistent_index_error_array_test.dart b/tests/compiler/dart2js_extra/consistent_index_error_array_test.dart
index 90b9ac2e353e077b21259e641b69e43e1f6f5605..0a3b7269ae11fe7810dce45af7d4da3a281bb6da 100644
--- a/tests/compiler/dart2js_extra/consistent_index_error_array_test.dart
+++ b/tests/compiler/dart2js_extra/consistent_index_error_array_test.dart
@@ -13,7 +13,7 @@ confuse(x) => x;
class TooHigh {
static load1() {
- var a = confuse(true) ? [10,11] : [10,11,12,13,14];
+ var a = confuse(true) ? [10, 11] : [10, 11, 12, 13, 14];
try {
// dynamic receiver causes method to be called via interceptor.
return confuse(a)[3];
@@ -31,8 +31,9 @@ class TooHigh {
}
Expect.fail('unreached');
}
+
static load2x(i) {
- var a = confuse(true) ? [10,11] : [10,11,12,13,14];
+ var a = confuse(true) ? [10, 11] : [10, 11, 12, 13, 14];
// 'a' is inferred as JSArray of unknown length so has optimized check.
return a[i];
}
@@ -46,7 +47,7 @@ class TooHigh {
class Negative {
static load1() {
- var a = confuse(true) ? [10,11] : [10,11,12,13,14];
+ var a = confuse(true) ? [10, 11] : [10, 11, 12, 13, 14];
try {
// dynamic receiver causes method to be called via interceptor.
return confuse(a)[-3];
@@ -64,8 +65,9 @@ class Negative {
}
Expect.fail('unreached');
}
+
static load2x(i) {
- var a = confuse(true) ? [10,11] : [10,11,12,13,14];
+ var a = confuse(true) ? [10, 11] : [10, 11, 12, 13, 14];
// 'a' is inferred as JSArray of unknown length so has optimized check.
return a[i];
}
@@ -79,7 +81,7 @@ class Negative {
class Empty {
static load1() {
- var a = confuse(true) ? [] : [10,11,12,13,14];
+ var a = confuse(true) ? [] : [10, 11, 12, 13, 14];
try {
// dynamic receiver causes method to be called via interceptor.
return confuse(a)[-3];
@@ -97,8 +99,9 @@ class Empty {
}
Expect.fail('unreached');
}
+
static load2x(i) {
- var a = confuse(true) ? [] : [10,11,12,13,14];
+ var a = confuse(true) ? [] : [10, 11, 12, 13, 14];
// 'a' is inferred as JSArray of unknown length so has optimized check.
return a[i];
}
@@ -112,7 +115,7 @@ class Empty {
class BadType {
static load1() {
- var a = confuse(true) ? [10,11] : [10,11,12,13,14];
+ var a = confuse(true) ? [10, 11] : [10, 11, 12, 13, 14];
try {
// dynamic receiver causes method to be called via interceptor.
return confuse(a)['a'];
@@ -130,8 +133,9 @@ class BadType {
}
Expect.fail('unreached');
}
+
static load2x(i) {
- var a = confuse(true) ? [10,11] : [10,11,12,13,14];
+ var a = confuse(true) ? [10, 11] : [10, 11, 12, 13, 14];
// 'a' is inferred as JSArray of unknown length so has optimized check.
return a[i];
}

Powered by Google App Engine
This is Rietveld 408576698