| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 analyzer.test.src.task.dart_test; | 5 library analyzer.test.src.task.dart_test; |
| 6 | 6 |
| 7 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
| 8 import 'package:analyzer/dart/ast/visitor.dart'; | 8 import 'package:analyzer/dart/ast/visitor.dart'; |
| 9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
| 10 import 'package:analyzer/dart/element/type.dart'; | 10 import 'package:analyzer/dart/element/type.dart'; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 import 'package:analyzer/task/dart.dart'; | 25 import 'package:analyzer/task/dart.dart'; |
| 26 import 'package:analyzer/task/general.dart'; | 26 import 'package:analyzer/task/general.dart'; |
| 27 import 'package:analyzer/task/model.dart'; | 27 import 'package:analyzer/task/model.dart'; |
| 28 import 'package:unittest/unittest.dart'; | 28 import 'package:unittest/unittest.dart'; |
| 29 | 29 |
| 30 import '../../generated/resolver_test.dart'; | 30 import '../../generated/resolver_test.dart'; |
| 31 import '../../generated/test_support.dart'; | 31 import '../../generated/test_support.dart'; |
| 32 import '../../reflective_tests.dart'; | 32 import '../../reflective_tests.dart'; |
| 33 import '../../utils.dart'; | 33 import '../../utils.dart'; |
| 34 import '../context/abstract_context.dart'; | 34 import '../context/abstract_context.dart'; |
| 35 import '../mock_sdk.dart'; | 35 import '../context/mock_sdk.dart'; |
| 36 | 36 |
| 37 main() { | 37 main() { |
| 38 initializeTestEnvironment(); | 38 initializeTestEnvironment(); |
| 39 runReflectiveTests(BuildCompilationUnitElementTaskTest); | 39 runReflectiveTests(BuildCompilationUnitElementTaskTest); |
| 40 runReflectiveTests(BuildDirectiveElementsTaskTest); | 40 runReflectiveTests(BuildDirectiveElementsTaskTest); |
| 41 runReflectiveTests(BuildEnumMemberElementsTaskTest); | 41 runReflectiveTests(BuildEnumMemberElementsTaskTest); |
| 42 runReflectiveTests(BuildExportNamespaceTaskTest); | 42 runReflectiveTests(BuildExportNamespaceTaskTest); |
| 43 runReflectiveTests(BuildLibraryElementTaskTest); | 43 runReflectiveTests(BuildLibraryElementTaskTest); |
| 44 runReflectiveTests(BuildPublicNamespaceTaskTest); | 44 runReflectiveTests(BuildPublicNamespaceTaskTest); |
| 45 runReflectiveTests(BuildSourceExportClosureTaskTest); | 45 runReflectiveTests(BuildSourceExportClosureTaskTest); |
| (...skipping 4911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4957 /** | 4957 /** |
| 4958 * Fill [errorListener] with [result] errors in the current [task]. | 4958 * Fill [errorListener] with [result] errors in the current [task]. |
| 4959 */ | 4959 */ |
| 4960 void _fillErrorListener(ResultDescriptor<List<AnalysisError>> result) { | 4960 void _fillErrorListener(ResultDescriptor<List<AnalysisError>> result) { |
| 4961 List<AnalysisError> errors = task.outputs[result]; | 4961 List<AnalysisError> errors = task.outputs[result]; |
| 4962 expect(errors, isNotNull, reason: result.name); | 4962 expect(errors, isNotNull, reason: result.name); |
| 4963 errorListener = new GatheringErrorListener(); | 4963 errorListener = new GatheringErrorListener(); |
| 4964 errorListener.addAll(errors); | 4964 errorListener.addAll(errors); |
| 4965 } | 4965 } |
| 4966 } | 4966 } |
| OLD | NEW |