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 library engine.resolver_test; | 5 library engine.resolver_test; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'package:analyzer/src/context/context.dart' as newContext; | 9 import 'package:analyzer/src/context/context.dart' as newContext; |
10 import 'package:analyzer/src/generated/ast.dart'; | 10 import 'package:analyzer/src/generated/ast.dart'; |
(...skipping 25 matching lines...) Expand all Loading... |
36 main() { | 36 main() { |
37 groupSep = ' | '; | 37 groupSep = ' | '; |
38 runReflectiveTests(AnalysisDeltaTest); | 38 runReflectiveTests(AnalysisDeltaTest); |
39 runReflectiveTests(ChangeSetTest); | 39 runReflectiveTests(ChangeSetTest); |
40 runReflectiveTests(EnclosedScopeTest); | 40 runReflectiveTests(EnclosedScopeTest); |
41 runReflectiveTests(LibraryImportScopeTest); | 41 runReflectiveTests(LibraryImportScopeTest); |
42 runReflectiveTests(LibraryScopeTest); | 42 runReflectiveTests(LibraryScopeTest); |
43 runReflectiveTests(ScopeTest); | 43 runReflectiveTests(ScopeTest); |
44 runReflectiveTests(ElementResolverTest); | 44 runReflectiveTests(ElementResolverTest); |
45 runReflectiveTests(InheritanceManagerTest); | 45 runReflectiveTests(InheritanceManagerTest); |
46 runReflectiveTests(LibraryElementBuilderTest); | 46 if (!AnalysisEngine.instance.useTaskModel) { |
47 runReflectiveTests(LibraryResolver2Test); | 47 runReflectiveTests(LibraryElementBuilderTest); |
48 runReflectiveTests(LibraryResolverTest); | 48 } |
| 49 if (!AnalysisEngine.instance.useTaskModel) { |
| 50 runReflectiveTests(LibraryResolver2Test); |
| 51 } |
| 52 if (!AnalysisEngine.instance.useTaskModel) { |
| 53 runReflectiveTests(LibraryResolverTest); |
| 54 } |
49 runReflectiveTests(LibraryTest); | 55 runReflectiveTests(LibraryTest); |
50 runReflectiveTests(StaticTypeAnalyzerTest); | 56 runReflectiveTests(StaticTypeAnalyzerTest); |
51 runReflectiveTests(StaticTypeAnalyzer2Test); | 57 runReflectiveTests(StaticTypeAnalyzer2Test); |
52 runReflectiveTests(SubtypeManagerTest); | 58 runReflectiveTests(SubtypeManagerTest); |
53 runReflectiveTests(TypeOverrideManagerTest); | 59 runReflectiveTests(TypeOverrideManagerTest); |
54 runReflectiveTests(TypeProviderImplTest); | 60 runReflectiveTests(TypeProviderImplTest); |
55 runReflectiveTests(TypeResolverVisitorTest); | 61 runReflectiveTests(TypeResolverVisitorTest); |
56 runReflectiveTests(CheckedModeCompileTimeErrorCodeTest); | 62 runReflectiveTests(CheckedModeCompileTimeErrorCodeTest); |
57 runReflectiveTests(ErrorResolverTest); | 63 runReflectiveTests(ErrorResolverTest); |
58 runReflectiveTests(HintCodeTest); | 64 runReflectiveTests(HintCodeTest); |
(...skipping 13810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13869 // check propagated type | 13875 // check propagated type |
13870 FunctionType propagatedType = node.propagatedType as FunctionType; | 13876 FunctionType propagatedType = node.propagatedType as FunctionType; |
13871 expect(propagatedType.returnType, test.typeProvider.stringType); | 13877 expect(propagatedType.returnType, test.typeProvider.stringType); |
13872 } on AnalysisException catch (e, stackTrace) { | 13878 } on AnalysisException catch (e, stackTrace) { |
13873 thrownException[0] = new CaughtException(e, stackTrace); | 13879 thrownException[0] = new CaughtException(e, stackTrace); |
13874 } | 13880 } |
13875 } | 13881 } |
13876 return null; | 13882 return null; |
13877 } | 13883 } |
13878 } | 13884 } |
OLD | NEW |