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

Unified Diff: tests/compiler/dart2js/mirrors_test.dart

Issue 11337021: Change surroundingDeclaration to DeclarationMirror.owner (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 | « pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart ('k') | utils/apidoc/apidoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/mirrors_test.dart
diff --git a/tests/compiler/dart2js/mirrors_test.dart b/tests/compiler/dart2js/mirrors_test.dart
index a0116fe66a94255348314406146b3f68eeeba6e5..3f4ebe4856bfd30fdd75b106716e7c3f604c7f4d 100644
--- a/tests/compiler/dart2js/mirrors_test.dart
+++ b/tests/compiler/dart2js/mirrors_test.dart
@@ -342,7 +342,7 @@ void testBaz(MirrorSystem system, LibraryMirror helperLibrary,
"Unexpected method simpleName");
Expect.stringEquals('mirrors_helper.Baz.method1', method1.qualifiedName,
"Unexpected method qualifiedName");
- Expect.equals(method1.surroundingDeclaration, bazClass,
+ Expect.equals(method1.owner, bazClass,
"Unexpected surrounding declaration");
Expect.isFalse(method1.isTopLevel, "Method is top level");
Expect.isFalse(method1.isConstructor, "Method is constructor");
@@ -396,7 +396,7 @@ void testBaz(MirrorSystem system, LibraryMirror helperLibrary,
"Unexpected method simpleName");
Expect.stringEquals('mirrors_helper.Baz.method2', method2.qualifiedName,
"Unexpected method qualifiedName");
- Expect.equals(method2.surroundingDeclaration, bazClass,
+ Expect.equals(method2.owner, bazClass,
"Unexpected surrounding declaration");
Expect.isFalse(method2.isTopLevel, "Method is top level");
Expect.isFalse(method2.isConstructor, "Method is constructor");
@@ -463,7 +463,7 @@ void testBaz(MirrorSystem system, LibraryMirror helperLibrary,
"Unexpected method simpleName");
Expect.stringEquals('mirrors_helper.Baz.method3', method3.qualifiedName,
"Unexpected method qualifiedName");
- Expect.equals(method3.surroundingDeclaration, bazClass,
+ Expect.equals(method3.owner, bazClass,
"Unexpected surrounding declaration");
Expect.isFalse(method3.isTopLevel, "Method is top level");
Expect.isFalse(method3.isConstructor, "Method is constructor");
@@ -594,7 +594,7 @@ void testBaz(MirrorSystem system, LibraryMirror helperLibrary,
Expect.stringEquals('mirrors_helper.Baz.==',
operator_eq.qualifiedName,
"Unexpected method qualifiedName");
- Expect.equals(operator_eq.surroundingDeclaration, bazClass,
+ Expect.equals(operator_eq.owner, bazClass,
"Unexpected surrounding declaration");
Expect.isFalse(operator_eq.isTopLevel, "Method is top level");
Expect.isFalse(operator_eq.isConstructor, "Method is constructor");
@@ -624,7 +624,7 @@ void testBaz(MirrorSystem system, LibraryMirror helperLibrary,
Expect.stringEquals('mirrors_helper.Baz.${Mirror.UNARY_MINUS}',
operator_negate.qualifiedName,
"Unexpected method qualifiedName");
- Expect.equals(operator_negate.surroundingDeclaration, bazClass,
+ Expect.equals(operator_negate.owner, bazClass,
"Unexpected surrounding declaration");
Expect.isFalse(operator_negate.isTopLevel, "Method is top level");
Expect.isFalse(operator_negate.isConstructor, "Method is constructor");
« no previous file with comments | « pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart ('k') | utils/apidoc/apidoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698