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

Unified Diff: tests/lib_strong/mirrors/mixin_members_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/mixin_members_test.dart
diff --git a/tests/lib_strong/mirrors/mixin_members_test.dart b/tests/lib_strong/mirrors/mixin_members_test.dart
index 2655892b74ae72ef8b143450ab5c63fe0da77f14..ae6db71b4426500619146362ab5e2ed51cca0c0e 100644
--- a/tests/lib_strong/mirrors/mixin_members_test.dart
+++ b/tests/lib_strong/mirrors/mixin_members_test.dart
@@ -33,9 +33,9 @@ class C extends S with M1, M2 {}
membersOf(ClassMirror cm) {
var result = new Map();
- cm.declarations.forEach((k,v) {
- if(v is MethodMirror && !v.isConstructor) result[k] = v;
- if(v is VariableMirror) result[k] = v;
+ cm.declarations.forEach((k, v) {
+ if (v is MethodMirror && !v.isConstructor) result[k] = v;
+ if (v is VariableMirror) result[k] = v;
});
return result;
}
@@ -46,20 +46,25 @@ main() {
ClassMirror sM1 = sM1M2.superclass;
ClassMirror s = sM1.superclass;
expect('{}', membersOf(cm));
- expect('[s(baz1), s(baz2)]',
- // TODO(ahe): Shouldn't have to sort.
- sort(membersOf(sM1M2).keys),
- '(S with M1, M2).members');
+ expect(
+ '[s(baz1), s(baz2)]',
+ // TODO(ahe): Shouldn't have to sort.
+ sort(membersOf(sM1M2).keys),
+ '(S with M1, M2).members');
expect('[s(M2)]', simpleNames(sM1M2.superinterfaces),
- '(S with M1, M2).superinterfaces');
- expect('[s(bar1), s(bar2)]',
- // TODO(ahe): Shouldn't have to sort.
- sort(membersOf(sM1).keys), '(S with M1).members');
+ '(S with M1, M2).superinterfaces');
+ expect(
+ '[s(bar1), s(bar2)]',
+ // TODO(ahe): Shouldn't have to sort.
+ sort(membersOf(sM1).keys),
+ '(S with M1).members');
expect('[s(M1)]', simpleNames(sM1.superinterfaces),
- '(S with M1).superinterfaces');
- expect('[s(foo1), s(foo2)]',
- // TODO(ahe): Shouldn't have to sort.
- sort(membersOf(s).keys), 's.members');
+ '(S with M1).superinterfaces');
+ expect(
+ '[s(foo1), s(foo2)]',
+ // TODO(ahe): Shouldn't have to sort.
+ sort(membersOf(s).keys),
+ 's.members');
expect('[s(Fooer)]', simpleNames(s.superinterfaces), 's.superinterfaces');
Expect.equals(s, reflectClass(S));
}

Powered by Google App Engine
This is Rietveld 408576698