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

Unified Diff: tests/lib/mirrors/method_mirror_properties_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/metadata_test.dart ('k') | tests/lib/mirrors/method_mirror_returntype_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/method_mirror_properties_test.dart
diff --git a/tests/lib/mirrors/method_mirror_properties_test.dart b/tests/lib/mirrors/method_mirror_properties_test.dart
index 950a2a80f91b387cb618bcc18cf1cde2f2020db8..9b44145a7a232953d4d0fc02c95bc51d04d51076 100644
--- a/tests/lib/mirrors/method_mirror_properties_test.dart
+++ b/tests/lib/mirrors/method_mirror_properties_test.dart
@@ -48,31 +48,31 @@ main() {
checkKinds(closureMirror.function,
[true, false, false, false, false]);
var libraryMirror = reflectClass(C).owner;
- checkKinds(libraryMirror.getters[#topGetter],
+ checkKinds(libraryMirror.declarations[#topGetter],
[true, false, true, false, false]);
- checkKinds(libraryMirror.setters[const Symbol("topSetter=")],
+ checkKinds(libraryMirror.declarations[const Symbol("topSetter=")],
[true, false, false, true, false]);
var classMirror;
classMirror = reflectClass(C);
- checkKinds(classMirror.members[#foo],
+ checkKinds(classMirror.declarations[#foo],
[true, false, false, false, false]);
- checkKinds(classMirror.members[#priv],
+ checkKinds(classMirror.declarations[#priv],
[false, false, true, false, false]);
- checkKinds(classMirror.members[const Symbol("priv=")],
+ checkKinds(classMirror.declarations[const Symbol("priv=")],
[false, false, false, true, false]);
- checkKinds(classMirror.constructors[#C],
+ checkKinds(classMirror.declarations[#C],
[false, false, false, false, true]);
- checkKinds(classMirror.constructors[#C.other],
+ checkKinds(classMirror.declarations[#C.other],
[false, false, false, false, true]);
- checkKinds(classMirror.constructors[#C.other2],
+ checkKinds(classMirror.declarations[#C.other2],
[false, false, false, false, true]);
classMirror = reflectClass(AbstractC);
- checkKinds(classMirror.constructors[#AbstractC],
+ checkKinds(classMirror.declarations[#AbstractC],
[false, false, false, false, true]);
- checkKinds(classMirror.members[#bar],
+ checkKinds(classMirror.declarations[#bar],
[false, true, false, false, false]);
- checkKinds(classMirror.members[#priv],
+ checkKinds(classMirror.declarations[#priv],
[false, true, true, false, false]);
- checkKinds(classMirror.members[const Symbol("priv=")],
+ checkKinds(classMirror.declarations[const Symbol("priv=")],
[false, true, false, true, false]);
}
« no previous file with comments | « tests/lib/mirrors/metadata_test.dart ('k') | tests/lib/mirrors/method_mirror_returntype_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698