| Index: tests/lib/mirrors/mixin_members_test.dart
|
| diff --git a/tests/lib/mirrors/mixin_members_test.dart b/tests/lib/mirrors/mixin_members_test.dart
|
| index 0e754d9291d0efd3b7fe4a6d5ac61ca21bc56f43..213cb05e0c18f797b223a96a04ef1883b7a7fdda 100644
|
| --- a/tests/lib/mirrors/mixin_members_test.dart
|
| +++ b/tests/lib/mirrors/mixin_members_test.dart
|
| @@ -34,9 +34,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;
|
| }
|
| @@ -47,20 +47,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));
|
| }
|
|
|