Chromium Code Reviews| 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 |