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

Unified Diff: pkg/analyzer/test/generated/element_test.dart

Issue 1140963002: Issue 23444. Use ConstructorMember(s) for super constructor fixes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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/analyzer/lib/src/generated/element.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/element_test.dart
diff --git a/pkg/analyzer/test/generated/element_test.dart b/pkg/analyzer/test/generated/element_test.dart
index 7c0314824fb1c07dc150d8c096beb547bb1c3ef2..b58b2b91190551fcdfa49a98f09370bf5872418a 100644
--- a/pkg/analyzer/test/generated/element_test.dart
+++ b/pkg/analyzer/test/generated/element_test.dart
@@ -2550,6 +2550,21 @@ class InterfaceTypeImplTest extends EngineTestCase {
expect(typeA.getMethod("m"), isNull);
}
+ void test_getConstructors() {
+ // TODO
Brian Wilkerson 2015/05/13 16:10:45 Is this left over?
+ ClassElementImpl typeElement = ElementFactory.classElement2("A");
+ ConstructorElementImpl constructorOne =
+ ElementFactory.constructorElement(typeElement, 'one', false);
+ ConstructorElementImpl constructorTwo =
+ ElementFactory.constructorElement(typeElement, 'two', false);
+ typeElement.constructors = <ConstructorElement>[
+ constructorOne,
+ constructorTwo
+ ];
+ InterfaceTypeImpl type = new InterfaceTypeImpl(typeElement);
+ expect(type.constructors, hasLength(2));
+ }
+
void test_getMethods() {
ClassElementImpl typeElement = ElementFactory.classElement2("A");
MethodElementImpl methodOne = ElementFactory.methodElement("one", null);
@@ -2565,6 +2580,12 @@ class InterfaceTypeImplTest extends EngineTestCase {
expect(type.methods.length, 0);
}
+ void test_getConstructors_empty() {
+ ClassElementImpl typeElement = ElementFactory.classElement2("A");
+ InterfaceTypeImpl type = new InterfaceTypeImpl(typeElement);
+ expect(type.constructors, isEmpty);
+ }
+
void test_getMixins_nonParameterized() {
//
// class C extends Object with A, B
« no previous file with comments | « pkg/analyzer/lib/src/generated/element.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698