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

Unified Diff: tests/lib/mirrors/method_mirror_source_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/method_mirror_returntype_test.dart ('k') | tests/lib/mirrors/mirrors_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_source_test.dart
diff --git a/tests/lib/mirrors/method_mirror_source_test.dart b/tests/lib/mirrors/method_mirror_source_test.dart
index 2507915ec17e8c1e2246e5706a920b95c13913bb..d0aad92bdd1e22832e73edc3f93ef74c88ba5a20 100644
--- a/tests/lib/mirrors/method_mirror_source_test.dart
+++ b/tests/lib/mirrors/method_mirror_source_test.dart
@@ -58,35 +58,35 @@ class C extends S {
main() {
// Top-level members
LibraryMirror lib = reflectClass(C).owner;
- expectSource(lib.members[#foo1],
+ expectSource(lib.declarations[#foo1],
"foo1() {}");
- expectSource(lib.members[#x],
+ expectSource(lib.declarations[#x],
"int get x => 42;");
- expectSource(lib.members[const Symbol("x=")],
+ expectSource(lib.declarations[const Symbol("x=")],
"set x(value) { }");
// Class members
ClassMirror cm = reflectClass(C);
- expectSource(cm.members[#foo],
+ expectSource(cm.declarations[#foo],
"static dynamic foo() {\n"
" // Happy foo.\n"
" }");
- expectSource(cm.members[#bar],
+ expectSource(cm.declarations[#bar],
"void bar() { /* Not so happy bar. */ }");
- expectSource(cm.members[#someX],
+ expectSource(cm.declarations[#someX],
"num get someX =>\n"
" 181;");
- expectSource(cm.members[const Symbol("someX=")],
+ expectSource(cm.declarations[const Symbol("someX=")],
"set someX(v) {\n"
" // Discard this one.\n"
" }");
- expectSource(cm.constructors[#C],
+ expectSource(cm.declarations[#C],
"C(this._x, y)\n"
" : _y = y,\n"
" super();");
- expectSource(cm.constructors[#C.other],
+ expectSource(cm.declarations[#C.other],
"factory C.other(num z) {}");
- expectSource(cm.constructors[#C.other3],
+ expectSource(cm.declarations[#C.other3],
"factory C.other3() = C.other2;");
// Closures
« no previous file with comments | « tests/lib/mirrors/method_mirror_returntype_test.dart ('k') | tests/lib/mirrors/mirrors_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698