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

Side by Side Diff: pkg/analyzer/test/generated/simple_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) 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.simple_resolver_test; 5 library analyzer.test.generated.simple_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/ast/visitor.dart'; 8 import 'package:analyzer/dart/ast/visitor.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/exception/exception.dart'; 11 import 'package:analyzer/exception/exception.dart';
12 import 'package:analyzer/src/error/codes.dart'; 12 import 'package:analyzer/src/error/codes.dart';
13 import 'package:analyzer/src/generated/engine.dart'; 13 import 'package:analyzer/src/generated/engine.dart';
14 import 'package:analyzer/src/generated/source_io.dart'; 14 import 'package:analyzer/src/generated/source_io.dart';
15 import 'package:test/test.dart'; 15 import 'package:test/test.dart';
16 import 'package:test_reflective_loader/test_reflective_loader.dart'; 16 import 'package:test_reflective_loader/test_reflective_loader.dart';
17 17
18 import '../utils.dart';
19 import 'resolver_test_case.dart'; 18 import 'resolver_test_case.dart';
20 import 'test_support.dart'; 19 import 'test_support.dart';
21 20
22 main() { 21 main() {
23 initializeTestEnvironment();
24 defineReflectiveSuite(() { 22 defineReflectiveSuite(() {
25 defineReflectiveTests(SimpleResolverTest); 23 defineReflectiveTests(SimpleResolverTest);
26 }); 24 });
27 } 25 }
28 26
29 @reflectiveTest 27 @reflectiveTest
30 class SimpleResolverTest extends ResolverTestCase { 28 class SimpleResolverTest extends ResolverTestCase {
31 void test_argumentResolution_required_matching() { 29 void test_argumentResolution_required_matching() {
32 Source source = addSource(r''' 30 Source source = addSource(r'''
33 class A { 31 class A {
(...skipping 1801 matching lines...) Expand 10 before | Expand all | Expand 10 after
1835 // check propagated type 1833 // check propagated type
1836 FunctionType propagatedType = node.propagatedType as FunctionType; 1834 FunctionType propagatedType = node.propagatedType as FunctionType;
1837 expect(propagatedType.returnType, test.typeProvider.stringType); 1835 expect(propagatedType.returnType, test.typeProvider.stringType);
1838 } on AnalysisException catch (e, stackTrace) { 1836 } on AnalysisException catch (e, stackTrace) {
1839 thrownException[0] = new CaughtException(e, stackTrace); 1837 thrownException[0] = new CaughtException(e, stackTrace);
1840 } 1838 }
1841 } 1839 }
1842 return null; 1840 return null;
1843 } 1841 }
1844 } 1842 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/sdk_test.dart ('k') | pkg/analyzer/test/generated/source_factory_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698