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

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

Issue 95123002: Substitute type variables as type arguments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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/equality_test.dart
diff --git a/tests/lib/mirrors/equality_test.dart b/tests/lib/mirrors/equality_test.dart
index b99c3112069ad5cf1bc327b50c6facbb6d5dc177..1e68ffa1dcdb5a39a2113353c97bc01ae31aecf3 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,29 @@ 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],
+ 'reflect(new BadEqualityHash()).type.declarations[#==].parameters[0]'
+ : (reflect(new BadEqualityHash()).type.
+ declarations[#==] as MethodMirror).parameters[0]},
- {'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 +144,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()},
@@ -157,4 +159,4 @@ main() {
'reflect(new A()).type.owner' : reflect(new A()).type.owner,
'reflect(new B()).type.owner' : reflect(new B()).type.owner},
]);
-}
+}

Powered by Google App Engine
This is Rietveld 408576698