Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: pkg/analyzer/test/src/task/dart_test.dart

Issue 1782463002: Split resolver_test.dart into smaller files. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/token.dart'; 8 import 'package:analyzer/dart/ast/token.dart';
9 import 'package:analyzer/dart/ast/visitor.dart'; 9 import 'package:analyzer/dart/ast/visitor.dart';
10 import 'package:analyzer/dart/element/element.dart'; 10 import 'package:analyzer/dart/element/element.dart';
11 import 'package:analyzer/dart/element/type.dart'; 11 import 'package:analyzer/dart/element/type.dart';
12 import 'package:analyzer/src/context/cache.dart'; 12 import 'package:analyzer/src/context/cache.dart';
13 import 'package:analyzer/src/dart/element/element.dart'; 13 import 'package:analyzer/src/dart/element/element.dart';
14 import 'package:analyzer/src/generated/constant.dart'; 14 import 'package:analyzer/src/generated/constant.dart';
15 import 'package:analyzer/src/generated/engine.dart' 15 import 'package:analyzer/src/generated/engine.dart'
16 show AnalysisOptions, AnalysisOptionsImpl, CacheState; 16 show AnalysisOptions, AnalysisOptionsImpl, CacheState;
17 import 'package:analyzer/src/generated/error.dart'; 17 import 'package:analyzer/src/generated/error.dart';
18 import 'package:analyzer/src/generated/resolver.dart'; 18 import 'package:analyzer/src/generated/resolver.dart';
19 import 'package:analyzer/src/generated/sdk.dart'; 19 import 'package:analyzer/src/generated/sdk.dart';
20 import 'package:analyzer/src/generated/source.dart'; 20 import 'package:analyzer/src/generated/source.dart';
21 import 'package:analyzer/src/services/lint.dart'; 21 import 'package:analyzer/src/services/lint.dart';
22 import 'package:analyzer/src/task/dart.dart'; 22 import 'package:analyzer/src/task/dart.dart';
23 import 'package:analyzer/src/task/html.dart'; 23 import 'package:analyzer/src/task/html.dart';
24 import 'package:analyzer/src/task/strong/info.dart'; 24 import 'package:analyzer/src/task/strong/info.dart';
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_case.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 '../context/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);
(...skipping 4928 matching lines...) Expand 10 before | Expand all | Expand 10 after
4969 /** 4969 /**
4970 * Fill [errorListener] with [result] errors in the current [task]. 4970 * Fill [errorListener] with [result] errors in the current [task].
4971 */ 4971 */
4972 void _fillErrorListener(ResultDescriptor<List<AnalysisError>> result) { 4972 void _fillErrorListener(ResultDescriptor<List<AnalysisError>> result) {
4973 List<AnalysisError> errors = task.outputs[result]; 4973 List<AnalysisError> errors = task.outputs[result];
4974 expect(errors, isNotNull, reason: result.name); 4974 expect(errors, isNotNull, reason: result.name);
4975 errorListener = new GatheringErrorListener(); 4975 errorListener = new GatheringErrorListener();
4976 errorListener.addAll(errors); 4976 errorListener.addAll(errors);
4977 } 4977 }
4978 } 4978 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698