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

Unified Diff: tests/compiler/dart2js/dump_info_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/dump_info_test.dart
diff --git a/tests/compiler/dart2js/dump_info_test.dart b/tests/compiler/dart2js/dump_info_test.dart
index 575d6d6f61ce2c19976ec5bbca81f49d03dff519..4d553179b4723d28edd4cf603cc611920acde893 100644
--- a/tests/compiler/dart2js/dump_info_test.dart
+++ b/tests/compiler/dart2js/dump_info_test.dart
@@ -8,7 +8,7 @@ import 'package:expect/expect.dart';
import 'package:async_helper/async_helper.dart';
import 'memory_compiler.dart';
-const String TEST_BASIC= r"""
+const String TEST_BASIC = r"""
library main;
int a = 2;
@@ -141,15 +141,14 @@ runTests() async {
}));
});
- await jsonTest(TEST_STATICS, (map) {
+ await jsonTest(TEST_STATICS, (map) {
var functions = map['elements']['function'].values;
var classes = map['elements']['class'].values;
Expect.isTrue(functions.any((fn) {
return fn['name'] == 'does_something';
}));
Expect.isTrue(classes.any((cls) {
- return cls['name'] == 'ContainsStatics' &&
- cls['children'].length >= 1;
+ return cls['name'] == 'ContainsStatics' && cls['children'].length >= 1;
}));
});
@@ -157,12 +156,10 @@ runTests() async {
var functions = map['elements']['function'].values;
var classes = map['elements']['class'].values;
Expect.isTrue(functions.any((fn) {
- return fn['name'] == 'double' &&
- fn['inlinedCount'] == 1;
+ return fn['name'] == 'double' && fn['inlinedCount'] == 1;
}));
Expect.isTrue(classes.any((cls) {
- return cls['name'] == 'Doubler' &&
- cls['children'].length >= 1;
+ return cls['name'] == 'Doubler' && cls['children'].length >= 1;
}));
});
« no previous file with comments | « tests/compiler/dart2js/dictionary_types_test.dart ('k') | tests/compiler/dart2js/duplicate_library_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698