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

Unified Diff: tests/lib/mirrors/generics_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_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
diff --git a/tests/lib/mirrors/generics_test.dart b/tests/lib/mirrors/generics_test.dart
index ec2d49a38946ad990dda14d9fe0656d8a3835f8a..085dc37d233e8238423d5c5c86b9082fd351bcf7 100644
--- a/tests/lib/mirrors/generics_test.dart
+++ b/tests/lib/mirrors/generics_test.dart
@@ -145,11 +145,10 @@ main() {
// Library members are all uninstantaited generics or non-generics.
currentMirrorSystem().libraries.values.forEach((libraryMirror) {
- 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);
+ libraryMirror.declarations.values.forEach((declaration) {
+ if (declaration is ClassMirror) {
+ Expect.isTrue(declaration.isOriginalDeclaration);
+ Expect.equals(declaration, declaration.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