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

Unified Diff: tests/compiler/dart2js/load_elimination_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
« no previous file with comments | « tests/compiler/dart2js/literal_map_test.dart ('k') | tests/compiler/dart2js/logical_expression_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()));
}
« no previous file with comments | « tests/compiler/dart2js/literal_map_test.dart ('k') | tests/compiler/dart2js/logical_expression_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698