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

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

Issue 64793003: Update mirror tests for removed API. (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
« no previous file with comments | « tests/lib/mirrors/constructors_test.dart ('k') | tests/lib/mirrors/fake_function_with_call_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/equality_test.dart
diff --git a/tests/lib/mirrors/equality_test.dart b/tests/lib/mirrors/equality_test.dart
index ffd158309237963ab7d28a2dff4c8c80096bab88..b99c3112069ad5cf1bc327b50c6facbb6d5dc177 100644
--- a/tests/lib/mirrors/equality_test.dart
+++ b/tests/lib/mirrors/equality_test.dart
@@ -100,15 +100,15 @@ main() {
{'currentMirrorSystem().voidType' : currentMirrorSystem().voidType}, /// 01: ok
{'currentMirrorSystem().voidType' : currentMirrorSystem().voidType, /// 02: ok
- 'thisLibrary.functions[#subroutine].returnType' : /// 02: ok
- thisLibrary.functions[#subroutine].returnType}, /// 02: ok
+ 'thisLibrary.declarations[#subroutine].returnType' : /// 02: ok
+ (thisLibrary.declarations[#subroutine] as MethodMirror).returnType}, /// 02: ok
{'currentMirrorSystem().dynamicType' : currentMirrorSystem().dynamicType,
- 'thisLibrary.functions[#main].returnType' :
- thisLibrary.functions[#main].returnType},
+ 'thisLibrary.declarations[#main].returnType' :
+ (thisLibrary.declarations[#main] as MethodMirror).returnType},
{'reflectClass(A)' : reflectClass(A),
- 'thisLibrary.classes[#A]' : thisLibrary.classes[#A],
+ 'thisLibrary.declarations[#A]' : thisLibrary.declarations[#A],
'reflect(new A<int>()).type.originalDeclaration' :
reflect(new A<int>()).type.originalDeclaration},
@@ -116,31 +116,31 @@ main() {
'reflect(new A<int>()).type' : reflect(new A<int>()).type}, /// 02: ok
{'reflectClass(B)' : reflectClass(B),
- 'thisLibrary.classes[#B]' : thisLibrary.classes[#B],
+ 'thisLibrary.declarations[#B]' : thisLibrary.declarations[#B],
'reflect(new B()).type' : reflect(new B()).type},
- {'reflectClass(BadEqualityHash).methods[#==]' /// 02: ok
- : reflectClass(BadEqualityHash).methods[#==], /// 02: ok
- 'reflect(new BadEqualityHash()).type.methods[#==]' /// 02: ok
- : reflect(new BadEqualityHash()).type.methods[#==]}, /// 02: ok
+ {'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).methods[#==].parameters[0]' /// 02: ok
- : reflectClass(BadEqualityHash).methods[#==].parameters[0], /// 02: ok
- 'reflect(new BadEqualityHash()).type.methods[#==].parameters[0]' /// 02: ok
- : reflect(new BadEqualityHash()).type.methods[#==].parameters[0]}, /// 02: ok
+ {'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).variables[#count]' /// 02: ok
- : reflectClass(BadEqualityHash).variables[#count], /// 02: ok
- 'reflect(new BadEqualityHash()).type.variables[#count]' /// 02: ok
- : reflect(new BadEqualityHash()).type.variables[#count]}, /// 02: ok
+ {'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
{'reflectType(Predicate)' : reflectType(Predicate), /// 02: ok
- 'thisLibrary.variables[#somePredicate].type' /// 02: ok
- : thisLibrary.variables[#somePredicate].type}, /// 02: ok
+ 'thisLibrary.declarations[#somePredicate].type' /// 02: ok
+ : (thisLibrary.declarations[#somePredicate] as VariableMirror).type}, /// 02: ok
{'reflectType(Predicate).referent' : (reflectType(Predicate) as TypedefMirror).referent, /// 02: ok
- 'thisLibrary.variables[#somePredicate].type.referent' /// 02: ok
- : (thisLibrary.variables[#somePredicate].type as TypedefMirror).referent}, /// 02: ok
+ '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
« no previous file with comments | « tests/lib/mirrors/constructors_test.dart ('k') | tests/lib/mirrors/fake_function_with_call_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698