OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
7 | 7 |
8 library engine.element_test; | 8 library engine.element_test; |
9 | 9 |
10 import 'package:analyzer/src/generated/java_core.dart'; | 10 import 'package:analyzer/src/generated/java_core.dart'; |
(...skipping 3518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3529 JUnitTestCase.assertEquals(argumentType, resultArguments[0]); | 3529 JUnitTestCase.assertEquals(argumentType, resultArguments[0]); |
3530 } | 3530 } |
3531 | 3531 |
3532 void test_substitute_exception() { | 3532 void test_substitute_exception() { |
3533 try { | 3533 try { |
3534 ClassElementImpl classA = ElementFactory.classElement2("A", []); | 3534 ClassElementImpl classA = ElementFactory.classElement2("A", []); |
3535 InterfaceTypeImpl type = new InterfaceTypeImpl.con1(classA); | 3535 InterfaceTypeImpl type = new InterfaceTypeImpl.con1(classA); |
3536 InterfaceType argumentType = ElementFactory.classElement2("B", []).type; | 3536 InterfaceType argumentType = ElementFactory.classElement2("B", []).type; |
3537 type.substitute2(<DartType> [argumentType], <DartType> []); | 3537 type.substitute2(<DartType> [argumentType], <DartType> []); |
3538 JUnitTestCase.fail("Expected to encounter exception, argument and paramete
r type array lengths not equal."); | 3538 JUnitTestCase.fail("Expected to encounter exception, argument and paramete
r type array lengths not equal."); |
3539 } on JavaException catch (e) { | 3539 } catch (e) { |
3540 } | 3540 } |
3541 } | 3541 } |
3542 | 3542 |
3543 void test_substitute_notEqual() { | 3543 void test_substitute_notEqual() { |
3544 ClassElementImpl classA = ElementFactory.classElement2("A", []); | 3544 ClassElementImpl classA = ElementFactory.classElement2("A", []); |
3545 TypeParameterElementImpl parameterElement = new TypeParameterElementImpl.for
Node(AstFactory.identifier3("E")); | 3545 TypeParameterElementImpl parameterElement = new TypeParameterElementImpl.for
Node(AstFactory.identifier3("E")); |
3546 InterfaceTypeImpl type = new InterfaceTypeImpl.con1(classA); | 3546 InterfaceTypeImpl type = new InterfaceTypeImpl.con1(classA); |
3547 TypeParameterTypeImpl parameter = new TypeParameterTypeImpl(parameterElement
); | 3547 TypeParameterTypeImpl parameter = new TypeParameterTypeImpl(parameterElement
); |
3548 type.typeArguments = <DartType> [parameter]; | 3548 type.typeArguments = <DartType> [parameter]; |
3549 InterfaceType argumentType = ElementFactory.classElement2("B", []).type; | 3549 InterfaceType argumentType = ElementFactory.classElement2("B", []).type; |
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4482 TypeParameterTypeImplTest.dartSuite(); | 4482 TypeParameterTypeImplTest.dartSuite(); |
4483 VoidTypeImplTest.dartSuite(); | 4483 VoidTypeImplTest.dartSuite(); |
4484 ClassElementImplTest.dartSuite(); | 4484 ClassElementImplTest.dartSuite(); |
4485 CompilationUnitElementImplTest.dartSuite(); | 4485 CompilationUnitElementImplTest.dartSuite(); |
4486 ElementLocationImplTest.dartSuite(); | 4486 ElementLocationImplTest.dartSuite(); |
4487 ElementImplTest.dartSuite(); | 4487 ElementImplTest.dartSuite(); |
4488 HtmlElementImplTest.dartSuite(); | 4488 HtmlElementImplTest.dartSuite(); |
4489 LibraryElementImplTest.dartSuite(); | 4489 LibraryElementImplTest.dartSuite(); |
4490 MultiplyDefinedElementImplTest.dartSuite(); | 4490 MultiplyDefinedElementImplTest.dartSuite(); |
4491 } | 4491 } |
OLD | NEW |