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

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

Issue 132133003: Extend the immutable collections test to the new API. Make *Members return immutable collections. A… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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
« runtime/lib/mirrors_impl.dart ('K') | « runtime/lib/mirrors_impl.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/immutable_collections_test.dart
diff --git a/tests/lib/mirrors/immutable_collections_test.dart b/tests/lib/mirrors/immutable_collections_test.dart
index 7f9ea0b871099aa924f28c7dba5423d5fcf39a16..50fdd75fc7d0e42cdd1ced4335c5c01c5ea543a8 100644
--- a/tests/lib/mirrors/immutable_collections_test.dart
+++ b/tests/lib/mirrors/immutable_collections_test.dart
@@ -42,12 +42,16 @@ checkMethod(MethodMirror mm) {
checkClass(ClassMirror cm) {
checkMap(cm.declarations, 'ClassMirror.declarations');
+ checkMap(cm.instanceMembers, 'ClassMirror.instanceMembers');
+ checkMap(cm.staticMembers, 'ClassMirror.staticMembers');
checkList(cm.metadata, 'ClassMirror.metadata');
checkList(cm.superinterfaces, 'ClassMirror.superinterfaces');
checkList(cm.typeArguments, 'ClassMirror.typeArguments');
checkList(cm.typeVariables, 'ClassMirror.typeVariables');
cm.declarations.values.forEach(checkDeclaration);
+ cm.instanceMembers.values.forEach(checkDeclaration);
+ cm.staticMembers.values.forEach(checkDeclaration);
cm.typeVariables.forEach(checkTypeVariable);
}
@@ -65,9 +69,11 @@ checkDeclaration(DeclarationMirror dm) {
checkLibrary(LibraryMirror lm) {
checkMap(lm.declarations, 'LibraryMirror.declarations');
+ checkMap(lm.topLevelMembers, 'LibraryMirror.topLevelMembers');
checkList(lm.metadata, 'LibraryMirror.metadata');
lm.declarations.values.forEach(checkDeclaration);
+ lm.topLevelMembers.values.forEach(checkDeclaration);
}
main() {
« runtime/lib/mirrors_impl.dart ('K') | « runtime/lib/mirrors_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698