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

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

Issue 78873007: Support type argument substitution on unnamed mixin applications. (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..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()},

Powered by Google App Engine
This is Rietveld 408576698