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

Side by Side Diff: pkg/analyzer/test/generated/incremental_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.incremental_resolver_test; 5 library analyzer.test.generated.incremental_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/token.dart'; 8 import 'package:analyzer/dart/ast/token.dart';
9 import 'package:analyzer/dart/element/element.dart'; 9 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/error/error.dart'; 10 import 'package:analyzer/error/error.dart';
(...skipping 11 matching lines...) Expand all
22 import 'package:analyzer/src/generated/java_engine.dart'; 22 import 'package:analyzer/src/generated/java_engine.dart';
23 import 'package:analyzer/src/generated/parser.dart'; 23 import 'package:analyzer/src/generated/parser.dart';
24 import 'package:analyzer/src/generated/resolver.dart'; 24 import 'package:analyzer/src/generated/resolver.dart';
25 import 'package:analyzer/src/generated/source_io.dart'; 25 import 'package:analyzer/src/generated/source_io.dart';
26 import 'package:analyzer/src/generated/testing/ast_factory.dart'; 26 import 'package:analyzer/src/generated/testing/ast_factory.dart';
27 import 'package:analyzer/src/generated/testing/element_factory.dart'; 27 import 'package:analyzer/src/generated/testing/element_factory.dart';
28 import 'package:analyzer/src/generated/utilities_collection.dart'; 28 import 'package:analyzer/src/generated/utilities_collection.dart';
29 import 'package:analyzer/src/task/dart.dart'; 29 import 'package:analyzer/src/task/dart.dart';
30 import 'package:analyzer/task/dart.dart'; 30 import 'package:analyzer/task/dart.dart';
31 import 'package:analyzer/task/model.dart'; 31 import 'package:analyzer/task/model.dart';
32 import 'package:test/test.dart';
32 import 'package:test_reflective_loader/test_reflective_loader.dart'; 33 import 'package:test_reflective_loader/test_reflective_loader.dart';
33 import 'package:unittest/unittest.dart';
34 34
35 import 'analysis_context_factory.dart'; 35 import 'analysis_context_factory.dart';
36 import 'resolver_test_case.dart'; 36 import 'resolver_test_case.dart';
37 import 'test_support.dart'; 37 import 'test_support.dart';
38 38
39 main() { 39 main() {
40 initializeTestEnvironment(); 40 initializeTestEnvironment();
41 defineReflectiveTests(IncrementalResolverTest); 41 defineReflectiveSuite(() {
42 defineReflectiveTests(PoorMansIncrementalResolutionTest); 42 defineReflectiveTests(IncrementalResolverTest);
43 defineReflectiveTests(ResolutionContextBuilderTest); 43 defineReflectiveTests(PoorMansIncrementalResolutionTest);
44 defineReflectiveTests(ResolutionContextBuilderTest);
45 });
44 } 46 }
45 47
46 void initializeTestEnvironment() {} 48 void initializeTestEnvironment() {}
47 49
48 void _assertEqualError(AnalysisError incError, AnalysisError fullError) { 50 void _assertEqualError(AnalysisError incError, AnalysisError fullError) {
49 if (incError.errorCode != fullError.errorCode || 51 if (incError.errorCode != fullError.errorCode ||
50 incError.source != fullError.source || 52 incError.source != fullError.source ||
51 incError.offset != fullError.offset || 53 incError.offset != fullError.offset ||
52 incError.length != fullError.length || 54 incError.length != fullError.length ||
53 incError.message != fullError.message) { 55 incError.message != fullError.message) {
(...skipping 2286 matching lines...) Expand 10 before | Expand all | Expand 10 after
2340 void logException(Object exception, [Object stackTrace]) { 2342 void logException(Object exception, [Object stackTrace]) {
2341 lastException = exception; 2343 lastException = exception;
2342 lastStackTrace = stackTrace; 2344 lastStackTrace = stackTrace;
2343 } 2345 }
2344 2346
2345 @override 2347 @override
2346 logging.LoggingTimer startTimer() { 2348 logging.LoggingTimer startTimer() {
2347 return new logging.LoggingTimer(this); 2349 return new logging.LoggingTimer(this);
2348 } 2350 }
2349 } 2351 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698