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

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

Issue 62373008: - Reverting mirror changes. (Closed) Base URL: http://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/generics_substitution_test.dart ('k') | tests/lib/mirrors/hierarchy_invariants_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/generics_test.dart
===================================================================
--- tests/lib/mirrors/generics_test.dart (revision 30028)
+++ tests/lib/mirrors/generics_test.dart (working copy)
@@ -145,10 +145,11 @@
// Library members are all uninstantaited generics or non-generics.
currentMirrorSystem().libraries.values.forEach((libraryMirror) {
- libraryMirror.declarations.values.forEach((declaration) {
- if (declaration is ClassMirror) {
- Expect.isTrue(declaration.isOriginalDeclaration);
- Expect.equals(declaration, declaration.originalDeclaration);
+ libraryMirror.classes.values.forEach((classMirror) {
+ // Generic typedefs are considered in a separate test.
+ if (classMirror is! TypedefMirror) {
+ Expect.isTrue(classMirror.isOriginalDeclaration);
+ Expect.equals(classMirror, classMirror.originalDeclaration);
}
});
});
« no previous file with comments | « tests/lib/mirrors/generics_substitution_test.dart ('k') | tests/lib/mirrors/hierarchy_invariants_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698