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

Side by Side Diff: pkg/analyzer/test/generated/non_error_resolver_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.generated.non_error_resolver_test; 5 library analyzer.test.generated.non_error_resolver_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/error/error.dart'; 9 import 'package:analyzer/error/error.dart';
10 import 'package:analyzer/src/error/codes.dart'; 10 import 'package:analyzer/src/error/codes.dart';
11 import 'package:analyzer/src/generated/engine.dart'; 11 import 'package:analyzer/src/generated/engine.dart';
12 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; 12 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode;
13 import 'package:analyzer/src/generated/source_io.dart'; 13 import 'package:analyzer/src/generated/source_io.dart';
14 import 'package:test/test.dart'; 14 import 'package:test/test.dart';
15 import 'package:test_reflective_loader/test_reflective_loader.dart'; 15 import 'package:test_reflective_loader/test_reflective_loader.dart';
16 16
17 import '../utils.dart';
18 import 'resolver_test_case.dart'; 17 import 'resolver_test_case.dart';
19 import 'test_support.dart'; 18 import 'test_support.dart';
20 19
21 main() { 20 main() {
22 initializeTestEnvironment();
23 defineReflectiveSuite(() { 21 defineReflectiveSuite(() {
24 defineReflectiveTests(NonErrorResolverTest); 22 defineReflectiveTests(NonErrorResolverTest);
25 }); 23 });
26 } 24 }
27 25
28 @reflectiveTest 26 @reflectiveTest
29 class NonErrorResolverTest extends ResolverTestCase { 27 class NonErrorResolverTest extends ResolverTestCase {
30 void fail_undefinedEnumConstant() { 28 void fail_undefinedEnumConstant() {
31 Source source = addSource(r''' 29 Source source = addSource(r'''
32 enum E { ONE } 30 enum E { ONE }
(...skipping 6183 matching lines...) Expand 10 before | Expand all | Expand 10 after
6216 reset(); 6214 reset();
6217 } 6215 }
6218 6216
6219 void _check_wrongNumberOfParametersForOperator1(String name) { 6217 void _check_wrongNumberOfParametersForOperator1(String name) {
6220 _check_wrongNumberOfParametersForOperator(name, "a"); 6218 _check_wrongNumberOfParametersForOperator(name, "a");
6221 } 6219 }
6222 6220
6223 CompilationUnit _getResolvedLibraryUnit(Source source) => 6221 CompilationUnit _getResolvedLibraryUnit(Source source) =>
6224 analysisContext.getResolvedCompilationUnit2(source, source); 6222 analysisContext.getResolvedCompilationUnit2(source, source);
6225 } 6223 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/java_io_test.dart ('k') | pkg/analyzer/test/generated/non_hint_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698