Chromium Code Reviews| Index: tests/lib/mirrors/equality_test.dart |
| diff --git a/tests/lib/mirrors/equality_test.dart b/tests/lib/mirrors/equality_test.dart |
| index b99c3112069ad5cf1bc327b50c6facbb6d5dc177..6fa56ecebe5cff9478df9eea5476f300232d96fb 100644 |
| --- a/tests/lib/mirrors/equality_test.dart |
| +++ b/tests/lib/mirrors/equality_test.dart |
| @@ -32,7 +32,7 @@ checkEquality(List<Map> equivalenceClasses) { |
| equivalenceClass.forEach((name, member) { |
| equivalenceClass.forEach((otherName, otherMember) { |
| // Reflexivity, symmetry and transitivity. |
| - Expect.equals(member, |
| + Expect.equals(member, |
| otherMember, |
| "$name == $otherName"); |
| Expect.equals(member.hashCode, |
| @@ -112,27 +112,27 @@ main() { |
| 'reflect(new A<int>()).type.originalDeclaration' : |
| reflect(new A<int>()).type.originalDeclaration}, |
| - {'reflectClass(B).superclass' : reflectClass(B).superclass, /// 02: ok |
| - 'reflect(new A<int>()).type' : reflect(new A<int>()).type}, /// 02: ok |
| + {'reflectClass(B).superclass' : reflectClass(B).superclass, |
| + 'reflect(new A<int>()).type' : reflect(new A<int>()).type}, |
| {'reflectClass(B)' : reflectClass(B), |
| 'thisLibrary.declarations[#B]' : thisLibrary.declarations[#B], |
| 'reflect(new B()).type' : reflect(new B()).type}, |
| - {'reflectClass(BadEqualityHash).declarations[#==]' /// 02: ok |
| - : reflectClass(BadEqualityHash).declarations[#==], /// 02: ok |
| - 'reflect(new BadEqualityHash()).type.declarations[#==]' /// 02: ok |
| - : reflect(new BadEqualityHash()).type.declarations[#==]}, /// 02: ok |
| + {'reflectClass(BadEqualityHash).declarations[#==]' |
| + : reflectClass(BadEqualityHash).declarations[#==], |
| + 'reflect(new BadEqualityHash()).type.declarations[#==]' |
| + : reflect(new BadEqualityHash()).type.declarations[#==]}, |
| - {'reflectClass(BadEqualityHash).declarations[#==].parameters[0]' /// 02: ok |
| - : (reflectClass(BadEqualityHash).declarations[#==] as MethodMirror).parameters[0], /// 02: ok |
| - 'reflect(new BadEqualityHash()).type.declarations[#==].parameters[0]' /// 02: ok |
| - : (reflect(new BadEqualityHash()).type.declarations[#==] as MethodMirror).parameters[0]}, /// 02: ok |
| + {'reflectClass(BadEqualityHash).declarations[#==].parameters[0]' |
| + : (reflectClass(BadEqualityHash).declarations[#==] as MethodMirror).parameters[0], |
|
Johnni Winther
2013/11/25 07:19:20
Long line.
zarah
2013/12/19 10:53:34
Done.
|
| + 'reflect(new BadEqualityHash()).type.declarations[#==].parameters[0]' |
| + : (reflect(new BadEqualityHash()).type.declarations[#==] as MethodMirror).parameters[0]}, |
|
Johnni Winther
2013/11/25 07:19:20
Long line.
zarah
2013/12/19 10:53:34
Done.
|
| - {'reflectClass(BadEqualityHash).declarations[#count]' /// 02: ok |
| - : reflectClass(BadEqualityHash).declarations[#count], /// 02: ok |
| - 'reflect(new BadEqualityHash()).type.declarations[#count]' /// 02: ok |
| - : reflect(new BadEqualityHash()).type.declarations[#count]}, /// 02: ok |
| + {'reflectClass(BadEqualityHash).declarations[#count]' |
| + : reflectClass(BadEqualityHash).declarations[#count], |
| + 'reflect(new BadEqualityHash()).type.declarations[#count]' |
| + : reflect(new BadEqualityHash()).type.declarations[#count]}, |
| {'reflectType(Predicate)' : reflectType(Predicate), /// 02: ok |
| 'thisLibrary.declarations[#somePredicate].type' /// 02: ok |
| @@ -142,10 +142,10 @@ main() { |
| 'thisLibrary.declarations[#somePredicate].type.referent' /// 02: ok |
| : ((thisLibrary.declarations[#somePredicate] as VariableMirror).type as TypedefMirror).referent}, /// 02: ok |
| - {'reflectClass(A).typeVariables.single' /// 02: ok |
| - : reflectClass(A).typeVariables.single, /// 02: ok |
| - 'reflect(new A<int>()).type.originalDeclaration.typeVariables.single' /// 02: ok |
| - : reflect(new A<int>()).type.originalDeclaration.typeVariables.single}, /// 02: ok |
| + {'reflectClass(A).typeVariables.single' |
| + : reflectClass(A).typeVariables.single, |
| + 'reflect(new A<int>()).type.originalDeclaration.typeVariables.single' |
| + : reflect(new A<int>()).type.originalDeclaration.typeVariables.single}, |
| {'currentMirrorSystem()' : currentMirrorSystem()}, |