| 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 test.src.task.dart_test; | 5 library test.src.task.dart_test; |
| 6 | 6 |
| 7 import 'package:analyzer/src/generated/ast.dart'; | 7 import 'package:analyzer/src/generated/ast.dart'; |
| 8 import 'package:analyzer/src/generated/element.dart'; | 8 import 'package:analyzer/src/generated/element.dart'; |
| 9 import 'package:analyzer/src/generated/error.dart'; | 9 import 'package:analyzer/src/generated/error.dart'; |
| 10 import 'package:analyzer/src/generated/resolver.dart'; | 10 import 'package:analyzer/src/generated/resolver.dart'; |
| 11 import 'package:analyzer/src/generated/source.dart'; | 11 import 'package:analyzer/src/generated/source.dart'; |
| 12 import 'package:analyzer/src/task/dart.dart'; | 12 import 'package:analyzer/src/task/dart.dart'; |
| 13 import 'package:analyzer/task/dart.dart'; | 13 import 'package:analyzer/task/dart.dart'; |
| 14 import 'package:analyzer/task/general.dart'; | 14 import 'package:analyzer/task/general.dart'; |
| 15 import 'package:analyzer/task/model.dart'; | 15 import 'package:analyzer/task/model.dart'; |
| 16 import 'package:unittest/unittest.dart'; | 16 import 'package:unittest/unittest.dart'; |
| 17 | 17 |
| 18 import '../../generated/test_support.dart'; | 18 import '../../generated/test_support.dart'; |
| 19 import '../../reflective_tests.dart'; | 19 import '../../reflective_tests.dart'; |
| 20 import '../context/abstract_context_test.dart'; | 20 import '../context/abstract_context.dart'; |
| 21 | 21 |
| 22 main() { | 22 main() { |
| 23 groupSep = ' | '; | 23 groupSep = ' | '; |
| 24 runReflectiveTests(BuildClassConstructorsTaskTest); | 24 runReflectiveTests(BuildClassConstructorsTaskTest); |
| 25 runReflectiveTests(BuildCompilationUnitElementTaskTest); | 25 runReflectiveTests(BuildCompilationUnitElementTaskTest); |
| 26 runReflectiveTests(BuildDirectiveElementsTaskTest); | 26 runReflectiveTests(BuildDirectiveElementsTaskTest); |
| 27 runReflectiveTests(BuildEnumMemberElementsTaskTest); | 27 runReflectiveTests(BuildEnumMemberElementsTaskTest); |
| 28 runReflectiveTests(BuildSourceClosuresTaskTest); | 28 runReflectiveTests(BuildSourceClosuresTaskTest); |
| 29 runReflectiveTests(BuildExportNamespaceTaskTest); | 29 runReflectiveTests(BuildExportNamespaceTaskTest); |
| 30 runReflectiveTests(BuildFunctionTypeAliasesTaskTest); | 30 runReflectiveTests(BuildFunctionTypeAliasesTaskTest); |
| (...skipping 1819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1850 /** | 1850 /** |
| 1851 * Fill [errorListener] with [result] errors in the current [task]. | 1851 * Fill [errorListener] with [result] errors in the current [task]. |
| 1852 */ | 1852 */ |
| 1853 void _fillErrorListener(ResultDescriptor<List<AnalysisError>> result) { | 1853 void _fillErrorListener(ResultDescriptor<List<AnalysisError>> result) { |
| 1854 List<AnalysisError> errors = task.outputs[result]; | 1854 List<AnalysisError> errors = task.outputs[result]; |
| 1855 expect(errors, isNotNull, reason: result.name); | 1855 expect(errors, isNotNull, reason: result.name); |
| 1856 errorListener = new GatheringErrorListener(); | 1856 errorListener = new GatheringErrorListener(); |
| 1857 errorListener.addAll(errors); | 1857 errorListener.addAll(errors); |
| 1858 } | 1858 } |
| 1859 } | 1859 } |
| OLD | NEW |