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

Side by Side Diff: pkg/analyzer/test/src/dart/element/element_test.dart

Issue 2399913002: Remove 'initializeTestEnvironment' from 'analyzer'. (Closed)
Patch Set: Created 4 years, 2 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) 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 analyzer.test.src.dart.element.element_test; 5 library analyzer.test.src.dart.element.element_test;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/constant/value.dart'; 8 import 'package:analyzer/dart/constant/value.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';
11 import 'package:analyzer/src/dart/element/element.dart'; 11 import 'package:analyzer/src/dart/element/element.dart';
12 import 'package:analyzer/src/dart/element/handle.dart'; 12 import 'package:analyzer/src/dart/element/handle.dart';
13 import 'package:analyzer/src/dart/element/type.dart'; 13 import 'package:analyzer/src/dart/element/type.dart';
14 import 'package:analyzer/src/generated/engine.dart' 14 import 'package:analyzer/src/generated/engine.dart'
15 show AnalysisContext, AnalysisOptionsImpl; 15 show AnalysisContext, AnalysisOptionsImpl;
16 import 'package:analyzer/src/generated/source_io.dart'; 16 import 'package:analyzer/src/generated/source_io.dart';
17 import 'package:analyzer/src/generated/testing/ast_factory.dart'; 17 import 'package:analyzer/src/generated/testing/ast_factory.dart';
18 import 'package:analyzer/src/generated/testing/element_factory.dart'; 18 import 'package:analyzer/src/generated/testing/element_factory.dart';
19 import 'package:analyzer/src/generated/testing/test_type_provider.dart'; 19 import 'package:analyzer/src/generated/testing/test_type_provider.dart';
20 import 'package:test/test.dart'; 20 import 'package:test/test.dart';
21 import 'package:test_reflective_loader/test_reflective_loader.dart'; 21 import 'package:test_reflective_loader/test_reflective_loader.dart';
22 22
23 import '../../../generated/analysis_context_factory.dart' 23 import '../../../generated/analysis_context_factory.dart'
24 show AnalysisContextHelper; 24 show AnalysisContextHelper;
25 import '../../../generated/resolver_test_case.dart'; 25 import '../../../generated/resolver_test_case.dart';
26 import '../../../generated/test_support.dart'; 26 import '../../../generated/test_support.dart';
27 import '../../../utils.dart';
28 27
29 main() { 28 main() {
30 initializeTestEnvironment();
31 defineReflectiveSuite(() { 29 defineReflectiveSuite(() {
32 defineReflectiveTests(ElementAnnotationImplTest); 30 defineReflectiveTests(ElementAnnotationImplTest);
33 defineReflectiveTests(FieldElementImplTest); 31 defineReflectiveTests(FieldElementImplTest);
34 defineReflectiveTests(FunctionTypeImplTest); 32 defineReflectiveTests(FunctionTypeImplTest);
35 defineReflectiveTests(InterfaceTypeImplTest); 33 defineReflectiveTests(InterfaceTypeImplTest);
36 defineReflectiveTests(LocalVariableElementImplTest); 34 defineReflectiveTests(LocalVariableElementImplTest);
37 defineReflectiveTests(TypeParameterTypeImplTest); 35 defineReflectiveTests(TypeParameterTypeImplTest);
38 defineReflectiveTests(VoidTypeImplTest); 36 defineReflectiveTests(VoidTypeImplTest);
39 defineReflectiveTests(ClassElementImplTest); 37 defineReflectiveTests(ClassElementImplTest);
40 defineReflectiveTests(CompilationUnitElementImplTest); 38 defineReflectiveTests(CompilationUnitElementImplTest);
(...skipping 4405 matching lines...) Expand 10 before | Expand all | Expand 10 after
4446 } 4444 }
4447 4445
4448 class _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction 4446 class _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction
4449 extends InterfaceTypeImpl { 4447 extends InterfaceTypeImpl {
4450 _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction(ClassElement arg0) 4448 _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction(ClassElement arg0)
4451 : super(arg0); 4449 : super(arg0);
4452 4450
4453 @override 4451 @override
4454 bool get isDartCoreFunction => true; 4452 bool get isDartCoreFunction => true;
4455 } 4453 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/dart/constant/value_test.dart ('k') | pkg/analyzer/test/src/dart/element/test_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698