| 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/ast.dart'; | 10 import 'package:analyzer/src/generated/ast.dart'; |
| (...skipping 1691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1702 List<DartType> normalParameters = result.normalParameterTypes; | 1702 List<DartType> normalParameters = result.normalParameterTypes; |
| 1703 expect(normalParameters, hasLength(1)); | 1703 expect(normalParameters, hasLength(1)); |
| 1704 expect(normalParameters[0], normalParameterType); | 1704 expect(normalParameters[0], normalParameterType); |
| 1705 List<DartType> optionalParameters = result.optionalParameterTypes; | 1705 List<DartType> optionalParameters = result.optionalParameterTypes; |
| 1706 expect(optionalParameters, hasLength(1)); | 1706 expect(optionalParameters, hasLength(1)); |
| 1707 expect(optionalParameters[0], optionalParameterType); | 1707 expect(optionalParameters[0], optionalParameterType); |
| 1708 Map<String, DartType> namedParameters = result.namedParameterTypes; | 1708 Map<String, DartType> namedParameters = result.namedParameterTypes; |
| 1709 expect(namedParameters, hasLength(1)); | 1709 expect(namedParameters, hasLength(1)); |
| 1710 expect(namedParameters[namedParameterName], namedParameterType); | 1710 expect(namedParameters[namedParameterName], namedParameterType); |
| 1711 } | 1711 } |
| 1712 |
| 1713 void test_toString_recursive() { |
| 1714 FunctionElementImpl t = ElementFactory.functionElement("t"); |
| 1715 FunctionElementImpl s = ElementFactory.functionElement("s"); |
| 1716 t.returnType = s.type; |
| 1717 s.returnType = t.type; |
| 1718 expect(t.type.toString(), '() \u2192 () \u2192 ...'); |
| 1719 } |
| 1712 } | 1720 } |
| 1713 | 1721 |
| 1714 @reflectiveTest | 1722 @reflectiveTest |
| 1715 class HtmlElementImplTest extends EngineTestCase { | 1723 class HtmlElementImplTest extends EngineTestCase { |
| 1716 void test_equals_differentSource() { | 1724 void test_equals_differentSource() { |
| 1717 AnalysisContextImpl context = createAnalysisContext(); | 1725 AnalysisContextImpl context = createAnalysisContext(); |
| 1718 HtmlElementImpl elementA = ElementFactory.htmlUnit(context, "indexA.html"); | 1726 HtmlElementImpl elementA = ElementFactory.htmlUnit(context, "indexA.html"); |
| 1719 HtmlElementImpl elementB = ElementFactory.htmlUnit(context, "indexB.html"); | 1727 HtmlElementImpl elementB = ElementFactory.htmlUnit(context, "indexB.html"); |
| 1720 expect(elementA == elementB, isFalse); | 1728 expect(elementA == elementB, isFalse); |
| 1721 } | 1729 } |
| (...skipping 2311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4033 | 4041 |
| 4034 class _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction extends | 4042 class _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction extends |
| 4035 InterfaceTypeImpl { | 4043 InterfaceTypeImpl { |
| 4036 | 4044 |
| 4037 _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction(ClassElement arg0) | 4045 _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction(ClassElement arg0) |
| 4038 : super.con1(arg0); | 4046 : super.con1(arg0); |
| 4039 | 4047 |
| 4040 @override | 4048 @override |
| 4041 bool get isDartCoreFunction => true; | 4049 bool get isDartCoreFunction => true; |
| 4042 } | 4050 } |
| OLD | NEW |