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

Side by Side Diff: pkg/analyzer/test/generated/resolver_test.dart

Issue 2391423003: Switch 'analyzer' to 'package:test' and test_reflective_loader ^0.1.0. (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.resolver_test; 5 library analyzer.test.generated.resolver_test;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
11 import 'package:analyzer/dart/ast/visitor.dart'; 11 import 'package:analyzer/dart/ast/visitor.dart';
12 import 'package:analyzer/dart/element/element.dart'; 12 import 'package:analyzer/dart/element/element.dart';
13 import 'package:analyzer/dart/element/type.dart'; 13 import 'package:analyzer/dart/element/type.dart';
14 import 'package:analyzer/file_system/memory_file_system.dart'; 14 import 'package:analyzer/file_system/memory_file_system.dart';
15 import 'package:analyzer/src/dart/element/element.dart'; 15 import 'package:analyzer/src/dart/element/element.dart';
16 import 'package:analyzer/src/dart/element/type.dart'; 16 import 'package:analyzer/src/dart/element/type.dart';
17 import 'package:analyzer/src/error/codes.dart'; 17 import 'package:analyzer/src/error/codes.dart';
18 import 'package:analyzer/src/generated/engine.dart'; 18 import 'package:analyzer/src/generated/engine.dart';
19 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; 19 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode;
20 import 'package:analyzer/src/generated/resolver.dart'; 20 import 'package:analyzer/src/generated/resolver.dart';
21 import 'package:analyzer/src/generated/source_io.dart'; 21 import 'package:analyzer/src/generated/source_io.dart';
22 import 'package:analyzer/src/generated/testing/ast_factory.dart'; 22 import 'package:analyzer/src/generated/testing/ast_factory.dart';
23 import 'package:analyzer/src/generated/testing/element_factory.dart'; 23 import 'package:analyzer/src/generated/testing/element_factory.dart';
24 import 'package:analyzer/src/generated/testing/test_type_provider.dart'; 24 import 'package:analyzer/src/generated/testing/test_type_provider.dart';
25 import 'package:analyzer/src/generated/utilities_dart.dart'; 25 import 'package:analyzer/src/generated/utilities_dart.dart';
26 import 'package:analyzer/src/source/source_resource.dart'; 26 import 'package:analyzer/src/source/source_resource.dart';
27 import 'package:test/test.dart';
27 import 'package:test_reflective_loader/test_reflective_loader.dart'; 28 import 'package:test_reflective_loader/test_reflective_loader.dart';
28 import 'package:unittest/unittest.dart';
29 29
30 import '../utils.dart'; 30 import '../utils.dart';
31 import 'analysis_context_factory.dart'; 31 import 'analysis_context_factory.dart';
32 import 'resolver_test_case.dart'; 32 import 'resolver_test_case.dart';
33 import 'test_support.dart'; 33 import 'test_support.dart';
34 34
35 main() { 35 main() {
36 initializeTestEnvironment(); 36 initializeTestEnvironment();
37 defineReflectiveTests(AnalysisDeltaTest); 37 defineReflectiveSuite(() {
38 defineReflectiveTests(ChangeSetTest); 38 defineReflectiveTests(AnalysisDeltaTest);
39 defineReflectiveTests(EnclosedScopeTest); 39 defineReflectiveTests(ChangeSetTest);
40 defineReflectiveTests(ErrorResolverTest); 40 defineReflectiveTests(EnclosedScopeTest);
41 defineReflectiveTests(LibraryImportScopeTest); 41 defineReflectiveTests(ErrorResolverTest);
42 defineReflectiveTests(LibraryScopeTest); 42 defineReflectiveTests(LibraryImportScopeTest);
43 defineReflectiveTests(PrefixedNamespaceTest); 43 defineReflectiveTests(LibraryScopeTest);
44 defineReflectiveTests(ScopeTest); 44 defineReflectiveTests(PrefixedNamespaceTest);
45 defineReflectiveTests(StrictModeTest); 45 defineReflectiveTests(ScopeTest);
46 defineReflectiveTests(SubtypeManagerTest); 46 defineReflectiveTests(StrictModeTest);
47 defineReflectiveTests(TypeOverrideManagerTest); 47 defineReflectiveTests(SubtypeManagerTest);
48 defineReflectiveTests(TypePropagationTest); 48 defineReflectiveTests(TypeOverrideManagerTest);
49 defineReflectiveTests(TypeProviderImplTest); 49 defineReflectiveTests(TypePropagationTest);
50 defineReflectiveTests(TypeResolverVisitorTest); 50 defineReflectiveTests(TypeProviderImplTest);
51 defineReflectiveTests(TypeResolverVisitorTest);
52 });
51 } 53 }
52 54
53 @reflectiveTest 55 @reflectiveTest
54 class AnalysisDeltaTest extends EngineTestCase { 56 class AnalysisDeltaTest extends EngineTestCase {
55 TestSource source1 = new TestSource('/1.dart'); 57 TestSource source1 = new TestSource('/1.dart');
56 TestSource source2 = new TestSource('/2.dart'); 58 TestSource source2 = new TestSource('/2.dart');
57 TestSource source3 = new TestSource('/3.dart'); 59 TestSource source3 = new TestSource('/3.dart');
58 60
59 void test_getAddedSources() { 61 void test_getAddedSources() {
60 AnalysisDelta delta = new AnalysisDelta(); 62 AnalysisDelta delta = new AnalysisDelta();
(...skipping 3132 matching lines...) Expand 10 before | Expand all | Expand 10 after
3193 */ 3195 */
3194 class _StaleElement extends ElementImpl { 3196 class _StaleElement extends ElementImpl {
3195 _StaleElement() : super("_StaleElement", -1); 3197 _StaleElement() : super("_StaleElement", -1);
3196 3198
3197 @override 3199 @override
3198 get kind => throw "_StaleElement's kind shouldn't be accessed"; 3200 get kind => throw "_StaleElement's kind shouldn't be accessed";
3199 3201
3200 @override 3202 @override
3201 accept(_) => throw "_StaleElement shouldn't be visited"; 3203 accept(_) => throw "_StaleElement shouldn't be visited";
3202 } 3204 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698