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

Side by Side Diff: pkg/analyzer/test/generated/hint_code_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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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.generated.hint_code_test; 5 library analyzer.test.generated.hint_code_test;
6 6
7 import 'package:analyzer/error/error.dart'; 7 import 'package:analyzer/error/error.dart';
8 import 'package:analyzer/src/error/codes.dart'; 8 import 'package:analyzer/src/error/codes.dart';
9 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/parser.dart'; 10 import 'package:analyzer/src/generated/parser.dart';
11 import 'package:analyzer/src/generated/source_io.dart'; 11 import 'package:analyzer/src/generated/source_io.dart';
12 import 'package:test/test.dart'; 12 import 'package:test/test.dart';
13 import 'package:test_reflective_loader/test_reflective_loader.dart'; 13 import 'package:test_reflective_loader/test_reflective_loader.dart';
14 14
15 import '../utils.dart';
16 import 'analysis_context_factory.dart'; 15 import 'analysis_context_factory.dart';
17 import 'resolver_test_case.dart'; 16 import 'resolver_test_case.dart';
18 17
19 main() { 18 main() {
20 initializeTestEnvironment();
21 defineReflectiveSuite(() { 19 defineReflectiveSuite(() {
22 defineReflectiveTests(HintCodeTest); 20 defineReflectiveTests(HintCodeTest);
23 }); 21 });
24 } 22 }
25 23
26 @reflectiveTest 24 @reflectiveTest
27 class HintCodeTest extends ResolverTestCase { 25 class HintCodeTest extends ResolverTestCase {
28 @override 26 @override
29 void reset() { 27 void reset() {
30 analysisContext2 = AnalysisContextFactory.contextWithCoreAndPackages({ 28 analysisContext2 = AnalysisContextFactory.contextWithCoreAndPackages({
(...skipping 3983 matching lines...) Expand 10 before | Expand all | Expand 10 after
4014 n() { 4012 n() {
4015 var a = m(), b = m(); 4013 var a = m(), b = m();
4016 } 4014 }
4017 }'''); 4015 }''');
4018 computeLibrarySourceErrors(source); 4016 computeLibrarySourceErrors(source);
4019 assertErrors( 4017 assertErrors(
4020 source, [HintCode.USE_OF_VOID_RESULT, HintCode.USE_OF_VOID_RESULT]); 4018 source, [HintCode.USE_OF_VOID_RESULT, HintCode.USE_OF_VOID_RESULT]);
4021 verify([source]); 4019 verify([source]);
4022 } 4020 }
4023 } 4021 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/error_suppression_test.dart ('k') | pkg/analyzer/test/generated/inheritance_manager_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698