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

Unified Diff: tests/compiler/dart2js_extra/consistent_index_error_typed_list_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_typed_list_test.dart
diff --git a/tests/compiler/dart2js_extra/consistent_index_error_typed_list_test.dart b/tests/compiler/dart2js_extra/consistent_index_error_typed_list_test.dart
index 1cd949d4c7f14276725951bd3b9de34bffa0d5e5..b086cfad93ec1a656fdd3c320f96fc32f6e37fb1 100644
--- a/tests/compiler/dart2js_extra/consistent_index_error_typed_list_test.dart
+++ b/tests/compiler/dart2js_extra/consistent_index_error_typed_list_test.dart
@@ -14,10 +14,10 @@ confuse(x) => x;
class TooHigh {
static load1() {
var a = confuse(true)
- ? new Uint8List.fromList([10,11])
- : new Uint8List.fromList([10,11,12,13,14]);
+ ? new Uint8List.fromList([10, 11])
+ : new Uint8List.fromList([10, 11, 12, 13, 14]);
try {
- return confuse(a)[3]; // dynamic receiver for indexer.
+ return confuse(a)[3]; // dynamic receiver for indexer.
} catch (e) {
return e;
}
@@ -32,10 +32,11 @@ class TooHigh {
}
Expect.fail('unreached');
}
+
static load2x(i) {
var a = confuse(true)
- ? new Uint8List.fromList([10,11])
- : new Uint8List.fromList([10,11,12,13,14]);
+ ? new Uint8List.fromList([10, 11])
+ : new Uint8List.fromList([10, 11, 12, 13, 14]);
return a[i];
}
@@ -49,10 +50,10 @@ class TooHigh {
class Negative {
static load1() {
var a = confuse(true)
- ? new Uint8List.fromList([10,11])
- : new Uint8List.fromList([10,11,12,13,14]);
+ ? new Uint8List.fromList([10, 11])
+ : new Uint8List.fromList([10, 11, 12, 13, 14]);
try {
- return confuse(a)[-3]; // dynamic receiver for indexer.
+ return confuse(a)[-3]; // dynamic receiver for indexer.
} catch (e) {
return e;
}
@@ -67,10 +68,11 @@ class Negative {
}
Expect.fail('unreached');
}
+
static load2x(i) {
var a = confuse(true)
- ? new Uint8List.fromList([10,11])
- : new Uint8List.fromList([10,11,12,13,14]);
+ ? new Uint8List.fromList([10, 11])
+ : new Uint8List.fromList([10, 11, 12, 13, 14]);
return a[i];
}
@@ -85,9 +87,9 @@ class Empty {
static load1() {
var a = confuse(true)
? new Uint8List.fromList([])
- : new Uint8List.fromList([10,11,12,13,14]);
+ : new Uint8List.fromList([10, 11, 12, 13, 14]);
try {
- return confuse(a)[-3]; // dynamic receiver for indexer.
+ return confuse(a)[-3]; // dynamic receiver for indexer.
} catch (e) {
return e;
}
@@ -102,10 +104,11 @@ class Empty {
}
Expect.fail('unreached');
}
+
static load2x(i) {
var a = confuse(true)
? new Uint8List.fromList([])
- : new Uint8List.fromList([10,11,12,13,14]);
+ : new Uint8List.fromList([10, 11, 12, 13, 14]);
return a[i];
}
@@ -119,10 +122,10 @@ class Empty {
class BadType {
static load1() {
var a = confuse(true)
- ? new Uint8List.fromList([10,11])
- : new Uint8List.fromList([10,11,12,13,14]);
+ ? new Uint8List.fromList([10, 11])
+ : new Uint8List.fromList([10, 11, 12, 13, 14]);
try {
- return confuse(a)['a']; // dynamic receiver for indexer.
+ return confuse(a)['a']; // dynamic receiver for indexer.
} catch (e) {
return e;
}
@@ -137,10 +140,11 @@ class BadType {
}
Expect.fail('unreached');
}
+
static load2x(i) {
var a = confuse(true)
- ? new Uint8List.fromList([10,11])
- : new Uint8List.fromList([10,11,12,13,14]);
+ ? new Uint8List.fromList([10, 11])
+ : new Uint8List.fromList([10, 11, 12, 13, 14]);
return a[i];
}

Powered by Google App Engine
This is Rietveld 408576698