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

Side by Side Diff: pkg/analyzer/test/src/task/strong_mode_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) 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.strong_mode_test; 5 library analyzer.test.src.task.strong_mode_test;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/element/element.dart'; 8 import 'package:analyzer/dart/element/element.dart';
9 import 'package:analyzer/dart/element/type.dart'; 9 import 'package:analyzer/dart/element/type.dart';
10 import 'package:analyzer/src/dart/resolver/inheritance_manager.dart'; 10 import 'package:analyzer/src/dart/resolver/inheritance_manager.dart';
11 import 'package:analyzer/src/generated/source.dart'; 11 import 'package:analyzer/src/generated/source.dart';
12 import 'package:analyzer/src/task/strong_mode.dart'; 12 import 'package:analyzer/src/task/strong_mode.dart';
13 import 'package:test/test.dart'; 13 import 'package:test/test.dart';
14 import 'package:test_reflective_loader/test_reflective_loader.dart'; 14 import 'package:test_reflective_loader/test_reflective_loader.dart';
15 15
16 import '../../utils.dart';
17 import '../context/abstract_context.dart'; 16 import '../context/abstract_context.dart';
18 17
19 main() { 18 main() {
20 initializeTestEnvironment();
21 defineReflectiveSuite(() { 19 defineReflectiveSuite(() {
22 defineReflectiveTests(InstanceMemberInferrerTest); 20 defineReflectiveTests(InstanceMemberInferrerTest);
23 defineReflectiveTests(SetFieldTypeTest); 21 defineReflectiveTests(SetFieldTypeTest);
24 defineReflectiveTests(VariableGathererTest); 22 defineReflectiveTests(VariableGathererTest);
25 }); 23 });
26 } 24 }
27 25
28 @reflectiveTest 26 @reflectiveTest
29 class InstanceMemberInferrerTest extends AbstractContextTest { 27 class InstanceMemberInferrerTest extends AbstractContextTest {
30 InstanceMemberInferrer createInferrer(LibraryElement library) { 28 InstanceMemberInferrer createInferrer(LibraryElement library) {
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 } 1031 }
1034 } 1032 }
1035 } 1033 }
1036 '''); 1034 ''');
1037 CompilationUnit unit = context.resolveCompilationUnit2(source, source); 1035 CompilationUnit unit = context.resolveCompilationUnit2(source, source);
1038 VariableGatherer gatherer = new VariableGatherer(filter); 1036 VariableGatherer gatherer = new VariableGatherer(filter);
1039 unit.accept(gatherer); 1037 unit.accept(gatherer);
1040 return gatherer.results; 1038 return gatherer.results;
1041 } 1039 }
1042 } 1040 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/task/strong/test_all.dart ('k') | pkg/analyzer/test/src/task/test_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698