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

Unified Diff: tests/lib_strong/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_strong/mirrors/constructors_test.dart
diff --git a/tests/lib_strong/mirrors/constructors_test.dart b/tests/lib_strong/mirrors/constructors_test.dart
index ac13e3b218008b99d895a5500b2346b9d9a26640..9bdbc7fb9aed4771e9cbb5db8e7a2d4b1324672d 100644
--- a/tests/lib_strong/mirrors/constructors_test.dart
+++ b/tests/lib_strong/mirrors/constructors_test.dart
@@ -12,14 +12,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();
@@ -47,10 +46,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);
@@ -60,13 +60,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