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

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

Issue 365713004: Adjust mirrors/regress_19731_test to avoid static warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/regress_19731_test.dart
diff --git a/tests/lib/mirrors/regress_19731_test.dart b/tests/lib/mirrors/regress_19731_test.dart
index 03e7facbc593579deba74a2bb10f2450c6f79cb2..b3680028c1b9cbc18657c88d400be17ee64a62f0 100644
--- a/tests/lib/mirrors/regress_19731_test.dart
+++ b/tests/lib/mirrors/regress_19731_test.dart
@@ -23,11 +23,13 @@ class OneField {
method() {}
main() {
- var classFieldNames = reflectType(OneField).declarations.values
+ var classMirror = reflectType(OneField);
+ var classFieldNames = classMirror.declarations.values
.where((v) => v is VariableMirror).map((v) => v.simpleName).toList();
Expect.setEquals([#onlyClassField], classFieldNames);
- var libraryFieldNames = reflectType(OneField).owner.declarations.values
+ var libraryMirror = classMirror.owner;
+ var libraryFieldNames = libraryMirror.declarations.values
.where((v) => v is VariableMirror).map((v) => v.simpleName).toList();
Expect.setEquals([#metadata], libraryFieldNames);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698