Index: tests/compiler/dart2js/load_elimination_test.dart |
diff --git a/tests/compiler/dart2js/load_elimination_test.dart b/tests/compiler/dart2js/load_elimination_test.dart |
index a5d4147fb2222f4782f09a213bd7f0f9749dd124..efbc8417417ea59c947a14b30d2cd6a2b87b0ee5 100644 |
--- a/tests/compiler/dart2js/load_elimination_test.dart |
+++ b/tests/compiler/dart2js/load_elimination_test.dart |
@@ -234,33 +234,34 @@ void main() { |
} |
"""; |
- |
main() { |
test(String code, String expected) { |
return () => compileAll(code, disableInlining: false).then((generated) { |
- Expect.isTrue(generated.contains(expected), |
- "Generated code didn't contain '$expected'.\n" |
- "Test:\n$code, Generated:\n$generated"); |
- }); |
+ Expect.isTrue( |
+ generated.contains(expected), |
+ "Generated code didn't contain '$expected'.\n" |
+ "Test:\n$code, Generated:\n$generated"); |
+ }); |
} |
+ |
asyncTest(() => Future.forEach([ |
- test(TEST_1, 'return 42'), |
- test(TEST_2, 'return 42'), |
- test(TEST_3, 'return 84'), |
- test(TEST_4, 'return t1 + t1'), |
- test(TEST_5, 'return 84'), |
- test(TEST_6, 'return 84'), |
- test(TEST_7, 'return 32'), |
- test(TEST_8, 'return a.a'), |
- test(TEST_9, 'return a.a'), |
- test(TEST_10, 'return 2'), |
- test(TEST_11, 'return a.a'), |
- test(TEST_12, 'return 6'), |
- test(TEST_13, 'return 6'), |
- test(TEST_14, 'return t1[0]'), |
- test(TEST_15, 'return 42'), |
- test(TEST_16, 'return \$.a'), |
- test(TEST_17, 'return t1'), |
- test(TEST_18, 'return t1'), |
- ], (f) => f())); |
+ test(TEST_1, 'return 42'), |
+ test(TEST_2, 'return 42'), |
+ test(TEST_3, 'return 84'), |
+ test(TEST_4, 'return t1 + t1'), |
+ test(TEST_5, 'return 84'), |
+ test(TEST_6, 'return 84'), |
+ test(TEST_7, 'return 32'), |
+ test(TEST_8, 'return a.a'), |
+ test(TEST_9, 'return a.a'), |
+ test(TEST_10, 'return 2'), |
+ test(TEST_11, 'return a.a'), |
+ test(TEST_12, 'return 6'), |
+ test(TEST_13, 'return 6'), |
+ test(TEST_14, 'return t1[0]'), |
+ test(TEST_15, 'return 42'), |
+ test(TEST_16, 'return \$.a'), |
+ test(TEST_17, 'return t1'), |
+ test(TEST_18, 'return t1'), |
+ ], (f) => f())); |
} |