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

Unified Diff: tests/lib/mirrors/constructors_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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/lib/mirrors/constructors_test.dart
diff --git a/tests/lib/mirrors/constructors_test.dart b/tests/lib/mirrors/constructors_test.dart
index c224cb9bbf46a22efc9a6421e6f4f265150ccdc8..b9fa569b867768a429e67d2046bd0e767ede545a 100644
--- a/tests/lib/mirrors/constructors_test.dart
+++ b/tests/lib/mirrors/constructors_test.dart
@@ -13,14 +13,13 @@ import 'stringify.dart';
constructorsOf(ClassMirror cm) {
var result = new Map();
- cm.declarations.forEach((k,v) {
- if(v is MethodMirror && v.isConstructor) result[k] = v;
+ cm.declarations.forEach((k, v) {
+ if (v is MethodMirror && v.isConstructor) result[k] = v;
});
return result;
}
-class Foo {
-}
+class Foo {}
class Bar {
Bar();
@@ -48,10 +47,11 @@ main() {
expect('{Foo: Method(s(Foo) in s(Foo), constructor)}', fooConstructors);
expect('{Bar: Method(s(Bar) in s(Bar), constructor)}', barConstructors);
expect('{Baz.named: Method(s(Baz.named) in s(Baz), constructor)}',
- bazConstructors);
- expect('{Biz: Method(s(Biz) in s(Biz), constructor),'
- ' Biz.named: Method(s(Biz.named) in s(Biz), constructor)}',
- bizConstructors);
+ bazConstructors);
+ expect(
+ '{Biz: Method(s(Biz) in s(Biz), constructor),'
+ ' Biz.named: Method(s(Biz.named) in s(Biz), constructor)}',
+ bizConstructors);
print(bizConstructors);
expect('[]', fooConstructors.values.single.parameters);
@@ -61,13 +61,14 @@ main() {
expect('[]', constructor.parameters);
}
- expect('[s()]',
- fooConstructors.values.map((m) => m.constructorName).toList());
- expect('[s()]',
- barConstructors.values.map((m) => m.constructorName).toList());
+ expect(
+ '[s()]', fooConstructors.values.map((m) => m.constructorName).toList());
+ expect(
+ '[s()]', barConstructors.values.map((m) => m.constructorName).toList());
expect('[s(named)]',
- bazConstructors.values.map((m) => m.constructorName).toList());
- expect('[s(), s(named)]',
- bizConstructors.values.map((m) => m.constructorName).toList()
- ..sort(compareSymbols));
+ bazConstructors.values.map((m) => m.constructorName).toList());
+ expect(
+ '[s(), s(named)]',
+ bizConstructors.values.map((m) => m.constructorName).toList()
+ ..sort(compareSymbols));
}

Powered by Google App Engine
This is Rietveld 408576698