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

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

Issue 23890036: Change return type of get typeVariables and typeArguments in ClassMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months 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
« sdk/lib/mirrors/mirrors.dart ('K') | « tests/lib/mirrors/mirrors_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/typevariable_mirror_metadata_test.dart
diff --git a/tests/lib/mirrors/typevariable_mirror_metadata_test.dart b/tests/lib/mirrors/typevariable_mirror_metadata_test.dart
index 77f226b02bf6fcdb2577f4e8fe255501bf635426..c4112306170a437ba2bd43c7de61b89a9bc742b7 100644
--- a/tests/lib/mirrors/typevariable_mirror_metadata_test.dart
+++ b/tests/lib/mirrors/typevariable_mirror_metadata_test.dart
@@ -32,17 +32,17 @@ typedef bool Predicate<@m1 @m2 G>(G a);
main() {
ClassMirror cm;
cm = reflectClass(A);
- checkMetadata(cm.typeVariables[const Symbol('S')], []);
- checkMetadata(cm.typeVariables[const Symbol('T')], [m1, m2]);
+ checkMetadata(cm.typeVariables.elementAt(0), []);
rmacnak 2013/09/18 17:09:57 cm.typeVariables[0] etc
zarah 2013/09/19 07:00:24 Done.
+ checkMetadata(cm.typeVariables.elementAt(1), [m1, m2]);
// Check for conflicts.
checkMetadata(cm.methods[const Symbol('T')], [m3]);
cm = reflectClass(B);
- checkMetadata(cm.typeVariables[const Symbol('T')], [m3]);
+ checkMetadata(cm.typeVariables.elementAt(0), [m3]);
// Check for conflicts.
checkMetadata(cm.members[const Symbol('T')], [m1, m2]);
TypedefMirror tm = reflectClass(Predicate);
FunctionTypeMirror ftm = tm.referent;
- checkMetadata(ftm.typeVariables[const Symbol('G')], [m1, m2]);
+ checkMetadata(ftm.typeVariables.elementAt(0), [m1, m2]);
}
« sdk/lib/mirrors/mirrors.dart ('K') | « tests/lib/mirrors/mirrors_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698