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

Unified Diff: tests/lib/mirrors/hierarchy_invariants_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/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
diff --git a/tests/lib/mirrors/hierarchy_invariants_test.dart b/tests/lib/mirrors/hierarchy_invariants_test.dart
index 19d3152a0ac77d2c6e2ca1f3fe9cf8600e551742..d636418fa49962c8738870534e67c25b525b6790 100644
--- a/tests/lib/mirrors/hierarchy_invariants_test.dart
+++ b/tests/lib/mirrors/hierarchy_invariants_test.dart
@@ -20,9 +20,9 @@ check(classMirror) {
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 @@ check(classMirror) {
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