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]()); |