| 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 3498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3509 } | 3509 } |
| 3510 | 3510 |
| 3511 void test_substitute_exception() { | 3511 void test_substitute_exception() { |
| 3512 try { | 3512 try { |
| 3513 ClassElementImpl classA = ElementFactory.classElement2("A", []); | 3513 ClassElementImpl classA = ElementFactory.classElement2("A", []); |
| 3514 InterfaceTypeImpl type = new InterfaceTypeImpl.con1(classA); | 3514 InterfaceTypeImpl type = new InterfaceTypeImpl.con1(classA); |
| 3515 InterfaceType argumentType = ElementFactory.classElement2("B", []).type; | 3515 InterfaceType argumentType = ElementFactory.classElement2("B", []).type; |
| 3516 type.substitute2(<DartType> [argumentType], <DartType> []); | 3516 type.substitute2(<DartType> [argumentType], <DartType> []); |
| 3517 JUnitTestCase.fail("Expected to encounter exception, argument and paramete
r type array lengths not equal."); | 3517 JUnitTestCase.fail("Expected to encounter exception, argument and paramete
r type array lengths not equal."); |
| 3518 } catch (e) { | 3518 } catch (e) { |
| 3519 // Expected result |
| 3519 } | 3520 } |
| 3520 } | 3521 } |
| 3521 | 3522 |
| 3522 void test_substitute_notEqual() { | 3523 void test_substitute_notEqual() { |
| 3523 // The [test_substitute_equals] above has a slightly higher level implementa
tion. | 3524 // The [test_substitute_equals] above has a slightly higher level implementa
tion. |
| 3524 ClassElementImpl classA = ElementFactory.classElement2("A", []); | 3525 ClassElementImpl classA = ElementFactory.classElement2("A", []); |
| 3525 TypeParameterElementImpl parameterElement = new TypeParameterElementImpl.for
Node(AstFactory.identifier3("E")); | 3526 TypeParameterElementImpl parameterElement = new TypeParameterElementImpl.for
Node(AstFactory.identifier3("E")); |
| 3526 InterfaceTypeImpl type = new InterfaceTypeImpl.con1(classA); | 3527 InterfaceTypeImpl type = new InterfaceTypeImpl.con1(classA); |
| 3527 TypeParameterTypeImpl parameter = new TypeParameterTypeImpl(parameterElement
); | 3528 TypeParameterTypeImpl parameter = new TypeParameterTypeImpl(parameterElement
); |
| 3528 type.typeArguments = <DartType> [parameter]; | 3529 type.typeArguments = <DartType> [parameter]; |
| (...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4743 UnionTypeImplTest.dartSuite(); | 4744 UnionTypeImplTest.dartSuite(); |
| 4744 VoidTypeImplTest.dartSuite(); | 4745 VoidTypeImplTest.dartSuite(); |
| 4745 ClassElementImplTest.dartSuite(); | 4746 ClassElementImplTest.dartSuite(); |
| 4746 CompilationUnitElementImplTest.dartSuite(); | 4747 CompilationUnitElementImplTest.dartSuite(); |
| 4747 ElementLocationImplTest.dartSuite(); | 4748 ElementLocationImplTest.dartSuite(); |
| 4748 ElementImplTest.dartSuite(); | 4749 ElementImplTest.dartSuite(); |
| 4749 HtmlElementImplTest.dartSuite(); | 4750 HtmlElementImplTest.dartSuite(); |
| 4750 LibraryElementImplTest.dartSuite(); | 4751 LibraryElementImplTest.dartSuite(); |
| 4751 MultiplyDefinedElementImplTest.dartSuite(); | 4752 MultiplyDefinedElementImplTest.dartSuite(); |
| 4752 } | 4753 } |
| OLD | NEW |