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

Unified Diff: tests/compiler/dart2js_extra/closure_capture4_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/closure_capture4_test.dart
diff --git a/tests/compiler/dart2js_extra/closure_capture4_test.dart b/tests/compiler/dart2js_extra/closure_capture4_test.dart
index aa52d743bfb902a907fb4210295e027d3dccbda3..5112a5d78057918b00b68ccdb21677ee1b77ae1e 100644
--- a/tests/compiler/dart2js_extra/closure_capture4_test.dart
+++ b/tests/compiler/dart2js_extra/closure_capture4_test.dart
@@ -8,7 +8,9 @@ closure0() {
var input = [1, 2, 3];
var fs = [];
for (var x in input) {
- fs.add(() { return x; });
+ fs.add(() {
+ return x;
+ });
}
Expect.equals(3, fs.length);
Expect.equals(1, fs[0]());
@@ -20,7 +22,9 @@ closure1() {
var input = [1, 2, 3];
var fs = [];
for (var x in input) {
- fs.add(() { return x; });
+ fs.add(() {
+ return x;
+ });
x++;
}
Expect.equals(3, fs.length);
@@ -34,7 +38,9 @@ closure2() {
var fs = [];
for (var i = 0; i < input.length; i++) {
var j = i;
- fs.add(() { return input[j]; });
+ fs.add(() {
+ return input[j];
+ });
}
Expect.equals(3, fs.length);
Expect.equals(1, fs[0]());
@@ -47,7 +53,9 @@ closure3() {
var fs = [];
for (var i = 0; i < input.length; i++) {
var x = input[i];
- fs.add(() { return x; });
+ fs.add(() {
+ return x;
+ });
x++;
}
Expect.equals(3, fs.length);
@@ -62,7 +70,9 @@ closure4() {
var x;
for (var i = 0; i < input.length; i++) {
x = input[i];
- fs.add(() { return x; });
+ fs.add(() {
+ return x;
+ });
x++;
}
Expect.equals(3, fs.length);
@@ -77,7 +87,9 @@ closure5() {
var i = 0;
do {
var x = input[i];
- fs.add(() { return x; });
+ fs.add(() {
+ return x;
+ });
} while (++i < input.length);
Expect.equals(3, fs.length);
Expect.equals(1, fs[0]());
« no previous file with comments | « tests/compiler/dart2js_extra/closure_capture3_test.dart ('k') | tests/compiler/dart2js_extra/closure_capture5_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698