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

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

Issue 63563003: - 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_test.dart ('k') | tests/lib/mirrors/immutable_collections_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/hierarchy_invariants_test.dart
===================================================================
--- tests/lib/mirrors/hierarchy_invariants_test.dart (revision 30026)
+++ tests/lib/mirrors/hierarchy_invariants_test.dart (working copy)
@@ -20,9 +20,9 @@
Expect.isTrue(classMirror.owner is LibraryMirror);
if (!isAnonymousMixinApplication(classMirror)) {
Expect.equals(classMirror.originalDeclaration,
- classMirror.owner.classes[classMirror.simpleName]);
+ classMirror.owner.declarations[classMirror.simpleName]);
} else {
- Expect.isNull(classMirror.owner.classes[classMirror.simpleName]);
+ Expect.isNull(classMirror.owner.declarations[classMirror.simpleName]);
}
Expect.isTrue(classMirror.superinterfaces is List);
if (classMirror.superclass == null) {
@@ -34,8 +34,8 @@
main() {
currentMirrorSystem().libraries.values.forEach((libraryMirror) {
- libraryMirror.classes.values.forEach((classMirror) {
- check(classMirror);
+ libraryMirror.declarations.values.forEach((declaration) {
+ if (declaration is ClassMirror) check(declaration);
});
});
« no previous file with comments | « tests/lib/mirrors/generics_test.dart ('k') | tests/lib/mirrors/immutable_collections_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698