Replace @ReflectiveTestCase() with @reflectiveTest.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//849863002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42821 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
scheglov@google.com 2015-01-13 17:11:24 +00:00
parent bf07d168c4
commit a38a503d86
107 changed files with 284 additions and 272 deletions

View file

@ -21,7 +21,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class GetErrorsTest extends AbstractAnalysisTest {
static const String requestId = 'test-getError';

View file

@ -19,7 +19,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class AnalysisHoverTest extends AbstractAnalysisTest {
Future<HoverInformation> prepareHover(String search) {
int offset = findOffset(search);

View file

@ -19,7 +19,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class NotificationErrorsTest extends AbstractAnalysisTest {
Map<String, List<AnalysisError>> filesErrors = {};

View file

@ -20,7 +20,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class AnalysisNotificationHighlightsTest extends AbstractAnalysisTest {
List<HighlightRegion> regions;
@ -1017,7 +1017,7 @@ part 'test.dart';
}
@ReflectiveTestCase()
@reflectiveTest
class HighlightTypeTest {
void test_constructor() {
expect(

View file

@ -20,7 +20,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class AnalysisNotificationNavigationTest extends AbstractAnalysisTest {
List<NavigationRegion> regions;
List<NavigationTarget> targets;

View file

@ -20,7 +20,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class AnalysisNotificationOccurrencesTest extends AbstractAnalysisTest {
List<Occurrences> occurrencesList;
Occurrences testOccurences;

View file

@ -19,7 +19,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class _AnalysisNotificationOutlineTest extends AbstractAnalysisTest {
Outline outline;

View file

@ -20,7 +20,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class AnalysisNotificationOverridesTest extends AbstractAnalysisTest {
List<Override> overridesList;
Override override;

View file

@ -19,7 +19,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class ReanalyzeTest extends AbstractAnalysisTest {
test_reanalyze() {
createProject();

View file

@ -29,7 +29,7 @@ main() {
runReflectiveTests(AnalysisServerTest);
}
@ReflectiveTestCase()
@reflectiveTest
class AnalysisServerTest {
MockServerChannel channel;
AnalysisServer server;

View file

@ -25,7 +25,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class ContextManagerTest {
TestContextManager manager;
MemoryResourceProvider resourceProvider;

View file

@ -352,7 +352,7 @@ testUpdateContent() {
}
@ReflectiveTestCase()
@reflectiveTest
class AnalysisDomainTest extends AbstractAnalysisTest {
Map<String, List<AnalysisError>> filesErrors = {};

View file

@ -36,7 +36,7 @@ main() {
runReflectiveTests(CompletionTest);
}
@ReflectiveTestCase()
@reflectiveTest
class CompletionManagerTest extends AbstractAnalysisTest {
AnalysisDomainHandler analysisDomain;
Test_CompletionDomainHandler completionDomain;
@ -242,7 +242,7 @@ class CompletionManagerTest extends AbstractAnalysisTest {
}
}
@ReflectiveTestCase()
@reflectiveTest
class CompletionTest extends AbstractAnalysisTest {
String completionId;
int completionOffset;

View file

@ -20,7 +20,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class AssistsTest extends AbstractAnalysisTest {
List<SourceChange> changes;

View file

@ -20,7 +20,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class FixesTest extends AbstractAnalysisTest {
@override
void setUp() {

View file

@ -30,7 +30,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class ConvertGetterMethodToMethodTest extends _AbstractGetRefactoring_Test {
test_function() {
addTestFile('''
@ -126,7 +126,7 @@ main(A a, B b, C c, D d) {
}
@ReflectiveTestCase()
@reflectiveTest
class ConvertMethodToGetterTest extends _AbstractGetRefactoring_Test {
test_function() {
addTestFile('''
@ -240,7 +240,7 @@ main(A a, B b, C c, D d) {
}
@ReflectiveTestCase()
@reflectiveTest
class ExtractLocalVariableTest extends _AbstractGetRefactoring_Test {
Future<Response> sendExtractRequest(int offset, int length, String name,
bool extractAll) {
@ -411,7 +411,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class ExtractMethodTest extends _AbstractGetRefactoring_Test {
int offset;
int length;
@ -624,7 +624,7 @@ void res(int a, int b) {
}
@ReflectiveTestCase()
@reflectiveTest
class GetAvailableRefactoringsTest extends AbstractAnalysisTest {
/**
* Tests that there is a RENAME refactoring available at the [search] offset.
@ -805,7 +805,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class InlineLocalTest extends _AbstractGetRefactoring_Test {
test_feedback() {
addTestFile('''
@ -867,7 +867,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class InlineMethodTest extends _AbstractGetRefactoring_Test {
InlineMethodOptions options = new InlineMethodOptions(true, true);
@ -994,7 +994,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class MoveFileTest extends _AbstractGetRefactoring_Test {
MoveFileOptions options = new MoveFileOptions(null);
@ -1026,7 +1026,7 @@ import 'bin/lib.dart';
}
@ReflectiveTestCase()
@reflectiveTest
class RenameTest extends _AbstractGetRefactoring_Test {
Future<Response> sendRenameRequest(String search, String newName,
[bool validateOnly = false]) {
@ -1580,7 +1580,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class _AbstractGetRefactoring_Test extends AbstractAnalysisTest {
/**
* Asserts that [problems] has a single ERROR problem.

View file

@ -21,7 +21,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class SortMembersTest extends AbstractAnalysisTest {
SourceFileEdit fileEdit;

View file

@ -14,7 +14,7 @@ main() {
runReflectiveTests(AnalysisErrorIntegrationTest);
}
@ReflectiveTestCase()
@reflectiveTest
class AnalysisErrorIntegrationTest extends AbstractAnalysisServerIntegrationTest
{
test_detect_simple_error() {

View file

@ -11,7 +11,7 @@ main() {
runReflectiveTests(Test);
}
@ReflectiveTestCase()
@reflectiveTest
class Test extends AnalysisDomainGetErrorsTest {
Test() : super(true);
}

View file

@ -11,7 +11,7 @@ main() {
runReflectiveTests(Test);
}
@ReflectiveTestCase()
@reflectiveTest
class Test extends AnalysisDomainGetErrorsTest {
Test() : super(false);
}

View file

@ -17,7 +17,7 @@ main() {
runReflectiveTests(AnalysisGetHoverIntegrationTest);
}
@ReflectiveTestCase()
@reflectiveTest
class AnalysisGetHoverIntegrationTest extends
AbstractAnalysisServerIntegrationTest {
/**

View file

@ -14,7 +14,7 @@ main() {
runReflectiveTests(AnalysisHighlightsTest);
}
@ReflectiveTestCase()
@reflectiveTest
class AnalysisHighlightsTest extends AbstractAnalysisServerIntegrationTest {
test_highlights() {
String pathname = sourcePath('test.dart');

View file

@ -14,7 +14,7 @@ main() {
runReflectiveTests(AnalysisNavigationTest);
}
@ReflectiveTestCase()
@reflectiveTest
class AnalysisNavigationTest extends AbstractAnalysisServerIntegrationTest {
test_navigation() {
String pathname1 = sourcePath('test1.dart');

View file

@ -14,7 +14,7 @@ main() {
runReflectiveTests(Test);
}
@ReflectiveTestCase()
@reflectiveTest
class Test extends AbstractAnalysisServerIntegrationTest {
test_occurrences() {
String pathname = sourcePath('test.dart');

View file

@ -14,7 +14,7 @@ main() {
runReflectiveTests(Test);
}
@ReflectiveTestCase()
@reflectiveTest
class Test extends AbstractAnalysisServerIntegrationTest {
/**
* Verify that the range of source text covered by the given outline objects

View file

@ -14,7 +14,7 @@ main() {
runReflectiveTests(Test);
}
@ReflectiveTestCase()
@reflectiveTest
class Test extends AbstractAnalysisServerIntegrationTest {
test_overrides() {
String pathname = sourcePath('test.dart');

View file

@ -15,7 +15,7 @@ main() {
runReflectiveTests(Test);
}
@ReflectiveTestCase()
@reflectiveTest
class Test extends AbstractAnalysisServerIntegrationTest {
test_package_root() {
String projPath = sourcePath('project');

View file

@ -19,7 +19,7 @@ main() {
runReflectiveTests(Test);
}
@ReflectiveTestCase()
@reflectiveTest
class Test extends AbstractAnalysisServerIntegrationTest {
test_reanalyze_concurrent() {
String pathname = sourcePath('test.dart');

View file

@ -14,7 +14,7 @@ main() {
runReflectiveTests(Test);
}
@ReflectiveTestCase()
@reflectiveTest
class Test extends AbstractAnalysisServerIntegrationTest {
test_reanalyze() {
String pathname = sourcePath('test.dart');

View file

@ -14,7 +14,7 @@ main() {
runReflectiveTests(Test);
}
@ReflectiveTestCase()
@reflectiveTest
class Test extends AbstractAnalysisServerIntegrationTest {
test_updateContent_list() {
String pathname = sourcePath('test.dart');

View file

@ -14,7 +14,7 @@ main() {
runReflectiveTests(Test);
}
@ReflectiveTestCase()
@reflectiveTest
class Test extends AbstractAnalysisServerIntegrationTest {
test_updateContent() {
String pathname = sourcePath('test.dart');

View file

@ -24,7 +24,7 @@ main() {
* Once enough commands have been sent, we begin reading from the server's
* output buffer, and verify that it responds to the last command.
*/
@ReflectiveTestCase()
@reflectiveTest
class AsynchronyIntegrationTest {
/**
* Number of messages to queue up before listening for responses.

View file

@ -15,7 +15,7 @@ main() {
runReflectiveTests(Test);
}
@ReflectiveTestCase()
@reflectiveTest
class Test extends AbstractAnalysisServerIntegrationTest {
fail_test_getSuggestions_string_var() {
// See dartbug.com/20188

View file

@ -61,7 +61,7 @@ class HierarchyResults {
}
}
@ReflectiveTestCase()
@reflectiveTest
class Test extends AbstractAnalysisServerIntegrationTest {
/**
* Pathname of the main file to run tests in.

View file

@ -11,7 +11,7 @@ main() {
runReflectiveTests(Test);
}
@ReflectiveTestCase()
@reflectiveTest
class Test extends AbstractAnalysisServerIntegrationTest {
test_getVersion() {
return sendServerGetVersion();

View file

@ -13,7 +13,7 @@ main() {
runReflectiveTests(Test);
}
@ReflectiveTestCase()
@reflectiveTest
class Test extends AbstractAnalysisServerIntegrationTest {
test_setSubscriptions_invalidService() {
// TODO(paulberry): verify that if an invalid service is specified, the

View file

@ -16,7 +16,7 @@ main() {
runReflectiveTests(Test);
}
@ReflectiveTestCase()
@reflectiveTest
class Test extends AbstractAnalysisServerIntegrationTest {
test_setSubscriptions() {
bool statusReceived = false;

View file

@ -15,7 +15,7 @@ main() {
runReflectiveTests(Test);
}
@ReflectiveTestCase()
@reflectiveTest
class Test extends AbstractAnalysisServerIntegrationTest {
test_shutdown() {
return sendServerShutdown().then((_) {

View file

@ -16,7 +16,7 @@ main() {
runReflectiveTests(Test);
}
@ReflectiveTestCase()
@reflectiveTest
class Test extends AbstractAnalysisServerIntegrationTest {
test_status() {
// After we kick off analysis, we should get one server.status message with

View file

@ -36,7 +36,7 @@ class AnalysisErrorMock extends TypedMock implements engine.AnalysisError {
}
@ReflectiveTestCase()
@reflectiveTest
class AnalysisErrorTest {
engine.Source source = new MockSource();
engine.LineInfo lineInfo;
@ -115,7 +115,7 @@ class AnalysisErrorTest {
}
@ReflectiveTestCase()
@reflectiveTest
class ElementKindTest {
void test_fromEngine() {
expect(
@ -216,7 +216,7 @@ class ElementKindTest {
}
@ReflectiveTestCase()
@reflectiveTest
class ElementTest extends AbstractContextTest {
engine.Element findElementInUnit(engine.CompilationUnit unit, String name,
[engine.ElementKind kind]) {
@ -413,7 +413,7 @@ class A {
}
}
@ReflectiveTestCase()
@reflectiveTest
class EnumTest {
void test_AnalysisErrorSeverity() {
new EnumTester<engine.ErrorSeverity, AnalysisErrorSeverity>().run(

View file

@ -25,7 +25,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class InvalidParameterResponseMatcher extends Matcher {
static const String ERROR_CODE = 'INVALID_PARAMETER';
@ -54,7 +54,7 @@ class InvalidParameterResponseMatcher extends Matcher {
}
@ReflectiveTestCase()
@reflectiveTest
class NotificationTest {
void test_fromJson() {
Notification original = new Notification('foo');
@ -101,7 +101,7 @@ class NotificationTest {
}
@ReflectiveTestCase()
@reflectiveTest
class RequestErrorTest {
void test_create() {
RequestError error =
@ -141,7 +141,7 @@ class RequestErrorTest {
}
@ReflectiveTestCase()
@reflectiveTest
class RequestTest {
void test_fromJson() {
Request original = new Request('one', 'aMethod');
@ -207,7 +207,7 @@ class RequestTest {
}
@ReflectiveTestCase()
@reflectiveTest
class ResponseTest {
void test_create_invalidRequestFormat() {
Response response = new Response.invalidRequestFormat();

View file

@ -4,7 +4,7 @@
library reflective_tests;
@MirrorsUsed(metaTargets: 'ReflectiveTestCase')
@MirrorsUsed(metaTargets: 'ReflectiveTest')
import 'dart:mirrors';
import 'dart:async';
@ -31,10 +31,10 @@ void runReflectiveTests(Type type) {
ClassMirror classMirror = reflectClass(type);
if (!classMirror.metadata.any(
(InstanceMirror annotation) =>
annotation.type.reflectedType == ReflectiveTestCase)) {
annotation.type.reflectedType == ReflectiveTest)) {
String name = MirrorSystem.getName(classMirror.qualifiedName);
throw new Exception(
'Class $name must have annotation "@ReflectiveTestCase()" '
'Class $name must have annotation "@reflectiveTest" '
'in order to be run by runReflectiveTests.');
}
String className = MirrorSystem.getName(classMirror.simpleName);
@ -124,6 +124,12 @@ _runTest(ClassMirror classMirror, Symbol symbol) {
* A marker annotation used to instruct dart2js to keep reflection information
* for the annotated classes.
*/
class ReflectiveTestCase {
const ReflectiveTestCase();
class ReflectiveTest {
const ReflectiveTest();
}
/**
* A marker annotation used to instruct dart2js to keep reflection information
* for the annotated classes.
*/
const ReflectiveTest reflectiveTest = const ReflectiveTest();

View file

@ -19,7 +19,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class ElementReferencesTest extends AbstractSearchDomainTest {
Element searchElement;

View file

@ -19,7 +19,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class MemberDeclarationsTest extends AbstractSearchDomainTest {
void assertHasDeclaration(ElementKind kind, String className) {
result = findTopLevelResult(kind, className);

View file

@ -19,7 +19,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class MemberReferencesTest extends AbstractSearchDomainTest {
void assertHasRef(SearchResultKind kind, String search, bool isPotential) {
assertHasResult(kind, search);

View file

@ -17,7 +17,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class SearchResultKindTest {
void test_fromEngine() {
expect(

View file

@ -19,7 +19,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class TopLevelDeclarationsTest extends AbstractSearchDomainTest {
void assertHasDeclaration(ElementKind kind, String name) {
result = findTopLevelResult(kind, name);

View file

@ -22,7 +22,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class GetTypeHierarchyTest extends AbstractAnalysisTest {
static const String requestId = 'test-getTypeHierarchy';

View file

@ -16,7 +16,7 @@ main() {
runReflectiveTests(ArgListComputerTest);
}
@ReflectiveTestCase()
@reflectiveTest
class ArgListComputerTest extends AbstractCompletionTest {
@override

View file

@ -17,7 +17,7 @@ main() {
runReflectiveTests(CombinatorComputerTest);
}
@ReflectiveTestCase()
@reflectiveTest
class CombinatorComputerTest extends AbstractCompletionTest {
@override

View file

@ -39,7 +39,7 @@ Future pumpEventQueue([int times = 20]) {
return new Future.delayed(Duration.ZERO, () => pumpEventQueue(times - 1));
}
@ReflectiveTestCase()
@reflectiveTest
class DartCompletionManagerTest extends AbstractSingleUnitTest {
Index index;
SearchEngineImpl searchEngine;

View file

@ -17,7 +17,7 @@ main() {
runReflectiveTests(CompletionManagerTest);
}
@ReflectiveTestCase()
@reflectiveTest
class CompletionManagerTest extends AbstractContextTest {
var perf = new CompletionPerformance();

View file

@ -24,7 +24,7 @@ main() {
runReflectiveTests(ImportedComputerTest);
}
@ReflectiveTestCase()
@reflectiveTest
class ImportedComputerTest extends AbstractSelectorSuggestionTest {
void assertCached(String completion) {

View file

@ -18,7 +18,7 @@ main() {
runReflectiveTests(InvocationComputerTest);
}
@ReflectiveTestCase()
@reflectiveTest
class InvocationComputerTest extends AbstractSelectorSuggestionTest {
@override

View file

@ -18,7 +18,7 @@ main() {
runReflectiveTests(KeywordComputerTest);
}
@ReflectiveTestCase()
@reflectiveTest
class KeywordComputerTest extends AbstractCompletionTest {
void assertSuggestKeywords(Iterable<Keyword> expectedKeywords,

View file

@ -17,7 +17,7 @@ main() {
runReflectiveTests(LocalComputerTest);
}
@ReflectiveTestCase()
@reflectiveTest
class LocalComputerTest extends AbstractSelectorSuggestionTest {
@override

View file

@ -19,7 +19,7 @@ main() {
runReflectiveTests(OpTypeTest);
}
@ReflectiveTestCase()
@reflectiveTest
class OpTypeTest {
OpType visitor;

View file

@ -22,7 +22,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class AssistProcessorTest extends AbstractSingleUnitTest {
Index index;
SearchEngineImpl searchEngine;

View file

@ -23,7 +23,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class ChangeTest {
void test_addEdit() {
SourceChange change = new SourceChange('msg');
@ -141,7 +141,7 @@ class ChangeTest {
}
@ReflectiveTestCase()
@reflectiveTest
class EditTest {
void test_applySequence() {
SourceEdit edit1 = new SourceEdit(5, 2, 'abc');
@ -193,7 +193,7 @@ class EditTest {
}
@ReflectiveTestCase()
@reflectiveTest
class FileEditTest {
void test_add_sorts() {
SourceEdit edit1a = new SourceEdit(1, 0, 'a1');
@ -251,7 +251,7 @@ class FileEditTest {
}
@ReflectiveTestCase()
@reflectiveTest
class LinkedEditGroupTest {
void test_new() {
LinkedEditGroup group = new LinkedEditGroup.empty();
@ -292,7 +292,7 @@ class LinkedEditGroupTest {
}
@ReflectiveTestCase()
@reflectiveTest
class LinkedEditSuggestionTest {
void test_eqEq() {
var a = new LinkedEditSuggestion('a', LinkedEditSuggestionKind.METHOD);
@ -308,7 +308,7 @@ class LinkedEditSuggestionTest {
}
@ReflectiveTestCase()
@reflectiveTest
class PositionTest {
void test_eqEq() {
Position a = new Position('/a.dart', 1);

View file

@ -26,7 +26,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class FixProcessorTest extends AbstractSingleUnitTest {
Index index;
SearchEngineImpl searchEngine;

View file

@ -15,7 +15,7 @@ main() {
runReflectiveTests(LevenshteinTest);
}
@ReflectiveTestCase()
@reflectiveTest
class LevenshteinTest {
void test_different_caseInsensitive() {
expect(levenshtein('Saturday', 'sunday', 5, caseSensitive: false), 3);

View file

@ -19,7 +19,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class VariableNameSuggestionTest extends AbstractSingleUnitTest {
void test_forExpression_cast() {
resolveTestUnit('''

View file

@ -18,7 +18,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class SortMembersTest extends AbstractSingleUnitTest {
void test_classMembers_accessor() {
_parseTestUnit(r'''

View file

@ -22,7 +22,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class SourceRangesTest extends AbstractSingleUnitTest {
void test_rangeElementName() {
resolveTestUnit('class ABC {}');

View file

@ -24,7 +24,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class RefactoringLocationTest extends AbstractSingleUnitTest {
void test_createLocation_forElement() {
resolveTestUnit('class MyClass {}');
@ -75,7 +75,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class RefactoringStatusTest {
void test_addError() {
RefactoringStatus refactoringStatus = new RefactoringStatus();

View file

@ -17,7 +17,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class StringsTest {
void test_capitalize() {
expect(capitalize(''), '');

View file

@ -61,7 +61,7 @@ bool _equalsRecordedRelation(RecordedRelation recordedRelation,
}
@ReflectiveTestCase()
@reflectiveTest
class DartUnitContributorTest extends AbstractSingleUnitTest {
IndexStore store = new MockIndexStore();
List<RecordedRelation> recordedRelations = <RecordedRelation>[];

View file

@ -35,7 +35,7 @@ Iterable<String> _toElementNames(List<Location> locations) {
}
@ReflectiveTestCase()
@reflectiveTest
class LocalIndexTest extends AbstractContextTest {
LocalIndex index;

View file

@ -24,7 +24,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class _ContextCodecTest {
ContextCodec codec = new ContextCodec();
@ -63,7 +63,7 @@ class _ContextCodecTest {
}
@ReflectiveTestCase()
@reflectiveTest
class _ElementCodecTest extends AbstractSingleUnitTest {
ElementCodec codec;
AnalysisContext context = new MockAnalysisContext('context');
@ -201,7 +201,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class _RelationshipCodecTest {
StringCodec stringCodec = new StringCodec();
RelationshipCodec codec;
@ -218,7 +218,7 @@ class _RelationshipCodecTest {
}
@ReflectiveTestCase()
@reflectiveTest
class _StringCodecTest {
StringCodec codec = new StringCodec();

View file

@ -17,7 +17,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class _IntArrayToIntMapTest {
IntArrayToIntMap map = new IntArrayToIntMap();
@ -31,7 +31,7 @@ class _IntArrayToIntMapTest {
}
@ReflectiveTestCase()
@reflectiveTest
class _IntToIntSetMapTest {
IntToIntSetMap map = new IntToIntSetMap();

View file

@ -55,7 +55,7 @@ void _assertHasLocationQ(List<Location> locations, Element element, int offset,
}
@ReflectiveTestCase()
@reflectiveTest
class _FileNodeManagerTest {
MockLogger logger = new MockLogger();
StringCodec stringCodec = new StringCodec();
@ -255,7 +255,7 @@ class _FileNodeManagerTest {
}
@ReflectiveTestCase()
@reflectiveTest
class _IndexNodeTest {
AnalysisContext context = new MockAnalysisContext('context');
ElementCodec elementCodec = new MockElementCodec();
@ -341,7 +341,7 @@ class _IndexNodeTest {
}
@ReflectiveTestCase()
@reflectiveTest
class _LocationDataTest {
AnalysisContext context = new MockAnalysisContext('context');
ElementCodec elementCodec = new MockElementCodec();
@ -426,7 +426,7 @@ class _MockIndexNode extends TypedMock implements IndexNode {
}
@ReflectiveTestCase()
@reflectiveTest
class _RelationKeyDataTest {
AnalysisContext context = new MockAnalysisContext('context');
ElementCodec elementCodec = new MockElementCodec();
@ -478,7 +478,7 @@ class _RelationKeyDataTest {
@ReflectiveTestCase()
@reflectiveTest
class _SplitIndexStoreTest {
AnalysisContext contextA = new MockAnalysisContext('contextA');

View file

@ -19,7 +19,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class _SeparateFileManagerTest {
TemporaryFolderFileManager fileManager;

View file

@ -21,7 +21,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class ConvertGetterToMethodTest extends RefactoringTest {
ConvertGetterToMethodRefactoring refactoring;

View file

@ -21,7 +21,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class ConvertMethodToGetterTest extends RefactoringTest {
ConvertMethodToGetterRefactoring refactoring;

View file

@ -21,7 +21,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class ExtractLocalTest extends RefactoringTest {
ExtractLocalRefactoringImpl refactoring;

View file

@ -21,7 +21,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class ExtractMethodTest extends RefactoringTest {
ExtractMethodRefactoringImpl refactoring;

View file

@ -20,7 +20,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class InlineLocalTest extends RefactoringTest {
InlineLocalRefactoringImpl refactoring;

View file

@ -22,7 +22,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class InlineMethodTest extends RefactoringTest {
InlineMethodRefactoringImpl refactoring;
bool deleteSource;

View file

@ -25,7 +25,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class MoveFileTest extends RefactoringTest {
MoveFileRefactoring refactoring;

View file

@ -20,7 +20,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class NamingConventionsTest extends RefactoringTest {
@override
Refactoring get refactoring => null;

View file

@ -17,7 +17,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class RenameClassMemberTest extends RenameRefactoringTest {
test_checkFinalConditions_hasMember_MethodElement() {
indexTestUnit('''

View file

@ -19,7 +19,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class RenameConstructorTest extends RenameRefactoringTest {
test_checkFinalConditions_hasMember_constructor() {
indexTestUnit('''

View file

@ -18,7 +18,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class RenameImportTest extends RenameRefactoringTest {
test_checkNewName() {
indexTestUnit("import 'dart:async' as test;");

View file

@ -17,7 +17,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class RenameLabelTest extends RenameRefactoringTest {
test_checkNewName_LocalVariableElement() {
indexTestUnit('''

View file

@ -19,7 +19,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class RenameLibraryTest extends RenameRefactoringTest {
void test_checkNewName() {
indexTestUnit('''

View file

@ -17,7 +17,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class RenameLocalTest extends RenameRefactoringTest {
test_checkFinalConditions_hasLocalFunction_after() {
indexTestUnit('''

View file

@ -17,7 +17,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class RenameUnitMemberTest extends RenameRefactoringTest {
test_checkFinalConditions_hasTopLevel_ClassElement() {
indexTestUnit('''

View file

@ -23,7 +23,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class HierarchyTest extends AbstractSingleUnitTest {
Index index;
SearchEngineImpl searchEngine;

View file

@ -68,7 +68,7 @@ class MockIndex extends TypedMock implements Index {
}
@ReflectiveTestCase()
@reflectiveTest
class SearchEngineImplTest extends AbstractSingleUnitTest {
Index index;
SearchEngineImpl searchEngine;

View file

@ -16,7 +16,7 @@ void main() {
runReflectiveTests(CancelableFutureTests);
}
@ReflectiveTestCase()
@reflectiveTest
class CancelableFutureTests {
Future test_defaultConstructor_returnValue() {
Object obj = new Object();
@ -140,7 +140,7 @@ class CancelableFutureTests {
}
}
@ReflectiveTestCase()
@reflectiveTest
class CancelableCompleterTests {
CancelableCompleter<Object> completer;
int cancelCount = 0;

View file

@ -25,7 +25,7 @@ void main() {
}
@ReflectiveTestCase()
@reflectiveTest
class EnumTest {
void test_AnalysisLevel() {
new EnumTester<AnalysisLevel>()

View file

@ -449,7 +449,7 @@ abstract class AbstractScannerTest {
}
@ReflectiveTestCase()
@reflectiveTest
class ConstantEvaluatorTest extends ResolverTestCase {
void fail_constructor() {
EvaluationResult result = _getExpressionValue("?");
@ -834,7 +834,7 @@ class ConstantEvaluatorTest extends ResolverTestCase {
}
@ReflectiveTestCase()
@reflectiveTest
class ConstantFinderTest extends EngineTestCase {
AstNode _node;
@ -970,7 +970,7 @@ class ConstantFinderTest extends EngineTestCase {
}
@ReflectiveTestCase()
@reflectiveTest
class ConstantValueComputerTest extends ResolverTestCase {
void test_annotation_constConstructor() {
CompilationUnit compilationUnit = resolveSource(r'''
@ -2204,7 +2204,7 @@ class ConstantValueComputerTest_ValidatingConstantVisitor extends
}
@ReflectiveTestCase()
@reflectiveTest
class ConstantVisitorTest extends ResolverTestCase {
void test_visitConditionalExpression_false() {
Expression thenExpression = AstFactory.integer(1);
@ -2376,7 +2376,7 @@ const b = 3;''');
}
@ReflectiveTestCase()
@reflectiveTest
class ContentCacheTest {
void test_setContents() {
Source source = new TestSource();
@ -2396,7 +2396,7 @@ class ContentCacheTest {
}
@ReflectiveTestCase()
@reflectiveTest
class DartObjectImplTest extends EngineTestCase {
TypeProvider _typeProvider = new TestTypeProvider();
@ -4645,7 +4645,7 @@ class DartObjectImplTest extends EngineTestCase {
}
@ReflectiveTestCase()
@reflectiveTest
class DartUriResolverTest {
void test_creation() {
JavaFile sdkDirectory = DirectoryBasedDartSdk.defaultSdkDirectory;
@ -4691,7 +4691,7 @@ class DartUriResolverTest {
}
@ReflectiveTestCase()
@reflectiveTest
class DeclaredVariablesTest extends EngineTestCase {
void test_getBool_false() {
TestTypeProvider typeProvider = new TestTypeProvider();
@ -4793,7 +4793,7 @@ class DeclaredVariablesTest extends EngineTestCase {
}
@ReflectiveTestCase()
@reflectiveTest
class DirectoryBasedDartSdkTest {
void fail_getDocFileFor() {
DirectoryBasedDartSdk sdk = _createDartSdk();
@ -4906,7 +4906,7 @@ class DirectoryBasedDartSdkTest {
}
@ReflectiveTestCase()
@reflectiveTest
class DirectoryBasedSourceContainerTest {
void test_contains() {
JavaFile dir = FileUtilities2.createFile("/does/not/exist");
@ -4926,7 +4926,7 @@ class DirectoryBasedSourceContainerTest {
}
@ReflectiveTestCase()
@reflectiveTest
class ElementBuilderTest extends EngineTestCase {
void test_visitCatchClause() {
ElementHolder holder = new ElementHolder();
@ -6183,7 +6183,7 @@ class ElementBuilderTest extends EngineTestCase {
}
@ReflectiveTestCase()
@reflectiveTest
class ElementLocatorTest extends ResolverTestCase {
void fail_locate_ExportDirective() {
AstNode id = _findNodeIn("export", "export 'dart:core';");
@ -6654,7 +6654,7 @@ core.int value;''');
}
@ReflectiveTestCase()
@reflectiveTest
class EnumMemberBuilderTest extends EngineTestCase {
void test_visitEnumDeclaration_multiple() {
String firstName = "ONE";
@ -6737,7 +6737,7 @@ class EnumMemberBuilderTest extends EngineTestCase {
}
@ReflectiveTestCase()
@reflectiveTest
class ErrorReporterTest extends EngineTestCase {
/**
* Create a type with the given name in a compilation unit with the given name.
@ -6790,7 +6790,7 @@ class ErrorReporterTest extends EngineTestCase {
}
@ReflectiveTestCase()
@reflectiveTest
class ErrorSeverityTest extends EngineTestCase {
void test_max_error_error() {
expect(
@ -6848,7 +6848,7 @@ class ErrorSeverityTest extends EngineTestCase {
}
@ReflectiveTestCase()
@reflectiveTest
class ExitDetectorTest extends ParserTestCase {
void fail_doStatement_continue_with_label() {
_assertFalse("{ x: do { continue x; } while(true); }");
@ -7338,7 +7338,7 @@ class ExitDetectorTest extends ParserTestCase {
}
@ReflectiveTestCase()
@reflectiveTest
class FileBasedSourceTest {
void test_equals_false_differentFiles() {
JavaFile file1 = FileUtilities2.createFile("/does/not/exist1.dart");
@ -7555,7 +7555,7 @@ class FileBasedSourceTest {
}
@ReflectiveTestCase()
@reflectiveTest
class FileUriResolverTest {
void test_creation() {
expect(new FileUriResolver(), isNotNull);
@ -7580,7 +7580,7 @@ class FileUriResolverTest {
}
@ReflectiveTestCase()
@reflectiveTest
class HtmlParserTest extends EngineTestCase {
/**
* The name of the 'script' tag in an HTML file.
@ -7764,7 +7764,7 @@ $scriptBody
}
@ReflectiveTestCase()
@reflectiveTest
class HtmlTagInfoBuilderTest extends HtmlParserTest {
void test_builder() {
HtmlTagInfoBuilder builder = new HtmlTagInfoBuilder();
@ -7788,7 +7788,7 @@ class HtmlTagInfoBuilderTest extends HtmlParserTest {
}
@ReflectiveTestCase()
@reflectiveTest
class HtmlUnitBuilderTest extends EngineTestCase {
AnalysisContextImpl _context;
@override
@ -7926,7 +7926,7 @@ class HtmlUnitBuilderTest_ExpectedVariable {
/**
* Instances of the class `HtmlWarningCodeTest` test the generation of HTML warning codes.
*/
@ReflectiveTestCase()
@reflectiveTest
class HtmlWarningCodeTest extends EngineTestCase {
/**
* The source factory used to create the sources to be resolved.
@ -8037,7 +8037,7 @@ class MockDartSdk implements DartSdk {
}
@ReflectiveTestCase()
@reflectiveTest
class ReferenceFinderTest extends EngineTestCase {
DirectedGraph<AstNode> _referenceGraph;
Map<VariableElement, VariableDeclaration> _variableDeclarationMap;
@ -8200,7 +8200,7 @@ class ReferenceFinderTest extends EngineTestCase {
}
@ReflectiveTestCase()
@reflectiveTest
class SDKLibrariesReaderTest extends EngineTestCase {
void test_readFrom_dart2js() {
LibraryMap libraryMap = new SdkLibrariesReader(
@ -8272,7 +8272,7 @@ final Map<String, LibraryInfo> LIBRARIES = const <String, LibraryInfo> {
}
@ReflectiveTestCase()
@reflectiveTest
class SourceFactoryTest {
void test_creation() {
expect(new SourceFactory([]), isNotNull);
@ -8340,7 +8340,7 @@ class SourceFactoryTest {
}
@ReflectiveTestCase()
@reflectiveTest
class StringScannerTest extends AbstractScannerTest {
@override
ht.AbstractScanner newScanner(String input) {
@ -8352,7 +8352,7 @@ class StringScannerTest extends AbstractScannerTest {
/**
* Instances of the class `ToSourceVisitorTest`
*/
@ReflectiveTestCase()
@reflectiveTest
class ToSourceVisitorTest extends EngineTestCase {
void fail_visitHtmlScriptTagNode_attributes_content() {
_assertSource(
@ -8407,7 +8407,7 @@ class ToSourceVisitorTest extends EngineTestCase {
}
@ReflectiveTestCase()
@reflectiveTest
class UriKindTest {
void test_fromEncoding() {
expect(UriKind.fromEncoding(0x64), same(UriKind.DART_URI));

View file

@ -95,7 +95,7 @@ class BreadthFirstVisitor_BreadthFirstVisitorTest_testIt extends
}
}
@ReflectiveTestCase()
@reflectiveTest
class BreadthFirstVisitorTest extends ParserTestCase {
void test_it() {
String source = r'''
@ -147,7 +147,7 @@ A f(var p) {
}
}
@ReflectiveTestCase()
@reflectiveTest
class ClassDeclarationTest extends ParserTestCase {
void test_getConstructor() {
List<ConstructorInitializer> initializers =
@ -246,7 +246,7 @@ class ClassDeclarationTest extends ParserTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class ClassTypeAliasTest extends ParserTestCase {
void test_isAbstract() {
expect(
@ -264,7 +264,7 @@ class ClassTypeAliasTest extends ParserTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class ConstantEvaluatorTest extends ParserTestCase {
void fail_constructor() {
Object value = _getConstantValue("?");
@ -582,7 +582,7 @@ class ConstantEvaluatorTest extends ParserTestCase {
ParserTestCase.parseExpression(source).accept(new ConstantEvaluator());
}
@ReflectiveTestCase()
@reflectiveTest
class ConstructorDeclarationTest extends EngineTestCase {
void test_firstTokenAfterCommentAndMetadata_all_inverted() {
Token externalKeyword = TokenFactory.tokenFromKeyword(Keyword.EXTERNAL);
@ -662,7 +662,7 @@ class ConstructorDeclarationTest extends EngineTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class IndexExpressionTest extends EngineTestCase {
void test_inGetterContext_assignment_compound_left() {
IndexExpression expression = AstFactory.indexExpression(
@ -797,7 +797,7 @@ class IndexExpressionTest extends EngineTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class NodeListTest extends EngineTestCase {
void test_add() {
AstNode parent = AstFactory.argumentList();
@ -1025,7 +1025,7 @@ class NodeListTest extends EngineTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class NodeLocatorTest extends ParserTestCase {
void test_range() {
CompilationUnit unit =
@ -1087,7 +1087,7 @@ class B {}''');
}
}
@ReflectiveTestCase()
@reflectiveTest
class SimpleIdentifierTest extends ParserTestCase {
void test_inDeclarationContext_catch_exception() {
SimpleIdentifier identifier =
@ -1406,7 +1406,7 @@ class SimpleIdentifierTest extends ParserTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class SimpleStringLiteralTest extends ParserTestCase {
void test_contentsEnd() {
expect(
@ -1620,7 +1620,7 @@ class SimpleStringLiteralTest extends ParserTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class StringInterpolationTest extends ParserTestCase {
void test_contentsOffsetEnd() {
AstFactory.interpolationExpression(AstFactory.identifier3('bb'));
@ -1750,7 +1750,7 @@ class StringInterpolationTest extends ParserTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class ToSourceVisitorTest extends EngineTestCase {
void test_visitAdjacentStrings() {
_assertSource(
@ -4044,7 +4044,7 @@ class ToSourceVisitorTest extends EngineTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class VariableDeclarationTest extends ParserTestCase {
void test_getDocumentationComment_onGrandParent() {
VariableDeclaration varDecl = AstFactory.variableDeclaration("a");

View file

@ -18,7 +18,7 @@ main() {
runReflectiveTests(CompileTimeErrorCodeTest);
}
@ReflectiveTestCase()
@reflectiveTest
class CompileTimeErrorCodeTest extends ResolverTestCase {
void fail_compileTimeConstantRaisesException() {
Source source = addSource(r'''

View file

@ -39,7 +39,7 @@ main() {
runReflectiveTests(MultiplyDefinedElementImplTest);
}
@ReflectiveTestCase()
@reflectiveTest
class ClassElementImplTest extends EngineTestCase {
void test_getAllSupertypes_interface() {
ClassElement classA = ElementFactory.classElement2("A");
@ -894,7 +894,7 @@ class B {}''');
}
}
@ReflectiveTestCase()
@reflectiveTest
class CompilationUnitElementImplTest extends EngineTestCase {
void test_getEnum_declared() {
TestTypeProvider typeProvider = new TestTypeProvider();
@ -937,7 +937,7 @@ class CompilationUnitElementImplTest extends EngineTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class ElementImplTest extends EngineTestCase {
void test_equals() {
LibraryElementImpl library =
@ -1033,7 +1033,7 @@ class ElementImplTest extends EngineTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class ElementKindTest extends EngineTestCase {
void test_of_nonNull() {
expect(
@ -1046,7 +1046,7 @@ class ElementKindTest extends EngineTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class ElementLocationImplTest extends EngineTestCase {
void test_create_encoding() {
String encoding = "a;b;c";
@ -1111,7 +1111,7 @@ class ElementLocationImplTest extends EngineTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class FunctionTypeImplTest extends EngineTestCase {
void test_creation() {
expect(
@ -1710,7 +1710,7 @@ class FunctionTypeImplTest extends EngineTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class HtmlElementImplTest extends EngineTestCase {
void test_equals_differentSource() {
AnalysisContextImpl context = createAnalysisContext();
@ -1739,7 +1739,7 @@ class HtmlElementImplTest extends EngineTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class InterfaceTypeImplTest extends EngineTestCase {
/**
* The type provider used to access the types.
@ -3361,7 +3361,7 @@ class InterfaceTypeImplTest extends EngineTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class LibraryElementImplTest extends EngineTestCase {
void test_creation() {
expect(
@ -3531,7 +3531,7 @@ class LibraryElementImplTest extends EngineTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class MultiplyDefinedElementImplTest extends EngineTestCase {
void test_fromElements_conflicting() {
Element firstElement = ElementFactory.localVariableElement2("xx");
@ -3584,7 +3584,7 @@ class MultiplyDefinedElementImplTest extends EngineTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class TypeParameterTypeImplTest extends EngineTestCase {
void test_creation() {
expect(
@ -3713,7 +3713,7 @@ class TypeParameterTypeImplTest extends EngineTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class UnionTypeImplTest extends EngineTestCase {
ClassElement _classA;
@ -3912,7 +3912,7 @@ class UnionTypeImplTest extends EngineTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class VoidTypeImplTest extends EngineTestCase {
/**
* Reference {code VoidTypeImpl.getInstance()}.

View file

@ -70,7 +70,7 @@ main() {
}
@ReflectiveTestCase()
@reflectiveTest
class AnalysisCacheTest extends EngineTestCase {
void test_creation() {
expect(new AnalysisCache(new List<CachePartition>(0)), isNotNull);
@ -153,7 +153,7 @@ class AnalysisCacheTest extends EngineTestCase {
}
@ReflectiveTestCase()
@reflectiveTest
class AnalysisContextImplTest extends EngineTestCase {
/**
* An analysis context whose source factory is [sourceFactory].
@ -2242,7 +2242,7 @@ class AnalysisContextImplTest_Source_getModificationStamp_overridden extends
}
@ReflectiveTestCase()
@reflectiveTest
class AnalysisOptionsImplTest extends EngineTestCase {
void test_AnalysisOptionsImpl_copy() {
bool booleanValue = true;
@ -2335,7 +2335,7 @@ class AnalysisTask_test_perform_exception extends AnalysisTask {
}
@ReflectiveTestCase()
@reflectiveTest
class AnalysisTaskTest extends EngineTestCase {
void test_perform_exception() {
InternalAnalysisContext context = new AnalysisContextImpl();
@ -2351,7 +2351,7 @@ class CompilationUnitMock extends TypedMock implements CompilationUnit {
}
@ReflectiveTestCase()
@reflectiveTest
class DartEntryTest extends EngineTestCase {
void test_allErrors() {
Source source = new TestSource();
@ -3796,7 +3796,7 @@ class DartEntryTest extends EngineTestCase {
}
@ReflectiveTestCase()
@reflectiveTest
class GenerateDartErrorsTaskTest extends EngineTestCase {
void test_accept() {
GenerateDartErrorsTask task =
@ -3925,7 +3925,7 @@ class GenerateDartErrorsTaskTestTV_perform_validateDirectives extends
}
@ReflectiveTestCase()
@reflectiveTest
class GenerateDartHintsTaskTest extends EngineTestCase {
void test_accept() {
GenerateDartHintsTask task = new GenerateDartHintsTask(null, null, null);
@ -4006,7 +4006,7 @@ class GenerateDartHintsTaskTestTV_perform extends TestTaskVisitor<bool> {
}
}
@ReflectiveTestCase()
@reflectiveTest
class GenerateDartLintsTaskTest extends EngineTestCase {
void test_accept() {
GenerateDartLintsTask task = new GenerateDartLintsTask(null, null, null);
@ -4069,7 +4069,7 @@ class GenerateDartLintsTaskTestTV_perform extends TestTaskVisitor<bool> {
}
}
@ReflectiveTestCase()
@reflectiveTest
class LintGeneratorTest extends EngineTestCase {
void test_generate() {
@ -4118,7 +4118,7 @@ class LintGeneratorTest_Verifier extends LintVerifier {
}
@ReflectiveTestCase()
@reflectiveTest
class GetContentTaskTest extends EngineTestCase {
void test_accept() {
Source source = new TestSource('/test.dart', '');
@ -4195,7 +4195,7 @@ class GetContentTaskTestTV_perform_valid extends TestTaskVisitor<bool> {
}
@ReflectiveTestCase()
@reflectiveTest
class HtmlEntryTest extends EngineTestCase {
void set state(DataDescriptor descriptor) {
HtmlEntry entry = new HtmlEntry();
@ -4364,7 +4364,7 @@ class HtmlEntryTest extends EngineTestCase {
}
@ReflectiveTestCase()
@reflectiveTest
class IncrementalAnalysisCacheTest {
Source _source = new TestSource();
DartEntry _entry = new DartEntry();
@ -4889,7 +4889,7 @@ class IncrementalAnalysisCacheTest {
}
@ReflectiveTestCase()
@reflectiveTest
class IncrementalAnalysisTaskTest extends EngineTestCase {
void test_accept() {
IncrementalAnalysisTask task = new IncrementalAnalysisTask(null, null);
@ -4966,7 +4966,7 @@ class IncrementalAnalysisTaskTestTV_assertTask extends
}
@ReflectiveTestCase()
@reflectiveTest
class ParseDartTaskTest extends EngineTestCase {
void test_accept() {
ParseDartTask task = new ParseDartTask(null, null, null, null);
@ -5164,7 +5164,7 @@ class ParseDartTaskTestTV_perform_validateDirectives extends
}
@ReflectiveTestCase()
@reflectiveTest
class ParseHtmlTaskTest extends EngineTestCase {
ParseHtmlTask parseContents(String contents, TestLogger testLogger) {
return parseSource(
@ -5348,7 +5348,7 @@ class ParseHtmlTaskTestTV_parseSource extends TestTaskVisitor<bool> {
}
@ReflectiveTestCase()
@reflectiveTest
class PartitionManagerTest extends EngineTestCase {
void test_clearCache() {
PartitionManager manager = new PartitionManager();
@ -5378,7 +5378,7 @@ class PartitionManagerTest extends EngineTestCase {
}
@ReflectiveTestCase()
@reflectiveTest
class ResolveDartLibraryTaskTest extends EngineTestCase {
void test_accept() {
ResolveDartLibraryTask task = new ResolveDartLibraryTask(null, null, null);
@ -5459,7 +5459,7 @@ class ResolveDartLibraryTaskTestTV_perform_library extends TestTaskVisitor<bool>
}
@ReflectiveTestCase()
@reflectiveTest
class ResolveDartUnitTaskTest extends EngineTestCase {
void test_accept() {
ResolveDartUnitTask task = new ResolveDartUnitTask(null, null, null);
@ -5560,7 +5560,7 @@ class ResolveDartUnitTaskTestTV_perform_library extends TestTaskVisitor<bool> {
}
@ReflectiveTestCase()
@reflectiveTest
class ResolveHtmlTaskTest extends EngineTestCase {
void test_accept() {
ResolveHtmlTask task = new ResolveHtmlTask(null, null, 0, null);
@ -5659,7 +5659,7 @@ class ResolveHtmlTaskTestTV_perform_valid_2 extends TestTaskVisitor<Object> {
}
@ReflectiveTestCase()
@reflectiveTest
class ScanDartTaskTest extends EngineTestCase {
void test_accept() {
ScanDartTask task = new ScanDartTask(null, null, null);
@ -5723,7 +5723,7 @@ class ScanDartTaskTestTV_perform_valid extends TestTaskVisitor<bool> {
}
@ReflectiveTestCase()
@reflectiveTest
class SdkCachePartitionTest extends EngineTestCase {
void test_contains_false() {
SdkCachePartition partition = new SdkCachePartition(null, 8);
@ -5745,7 +5745,7 @@ class SdkCachePartitionTest extends EngineTestCase {
}
@ReflectiveTestCase()
@reflectiveTest
class SourcesChangedEventTest {
void test_added() {
@ -6859,7 +6859,7 @@ class TestTaskVisitor<E> implements AnalysisTaskVisitor<E> {
}
@ReflectiveTestCase()
@reflectiveTest
class UniversalCachePartitionTest extends EngineTestCase {
void test_contains() {
UniversalCachePartition partition =
@ -6949,7 +6949,7 @@ class UniversalCachePartitionTest extends EngineTestCase {
}
@ReflectiveTestCase()
@reflectiveTest
class WorkManagerTest extends EngineTestCase {
void test_addFirst() {
TestSource source1 = new TestSource("/f1.dart");

View file

@ -63,7 +63,7 @@ void _assertEqualErrors(List<AnalysisError> incrErrors,
}
@ReflectiveTestCase()
@reflectiveTest
class DeclarationMatcherTest extends ResolverTestCase {
void setUp() {
super.setUp();
@ -2032,7 +2032,7 @@ class B extends Object with A {}
}
@ReflectiveTestCase()
@reflectiveTest
class IncrementalResolverTest extends ResolverTestCase {
Source source;
String code;
@ -2475,7 +2475,7 @@ class B {
* The test for [poorMansIncrementalResolution] function and its integration
* into [AnalysisContext].
*/
@ReflectiveTestCase()
@reflectiveTest
class PoorMansIncrementalResolutionTest extends ResolverTestCase {
Source source;
String code;
@ -3283,7 +3283,7 @@ f3() {
}
@ReflectiveTestCase()
@reflectiveTest
class ResolutionContextBuilderTest extends EngineTestCase {
GatheringErrorListener listener = new GatheringErrorListener();

View file

@ -17,7 +17,7 @@ main() {
runReflectiveTests(IncrementalScannerTest);
}
@ReflectiveTestCase()
@reflectiveTest
class IncrementalScannerTest extends EngineTestCase {
/**
* The first token from the token stream resulting from parsing the original

View file

@ -21,7 +21,7 @@ main() {
runReflectiveTests(NonErrorResolverTest);
}
@ReflectiveTestCase()
@reflectiveTest
class NonErrorResolverTest extends ResolverTestCase {
void fail_undefinedEnumConstant() {
Source source = addSource(r'''

View file

@ -123,7 +123,7 @@ class AstValidator extends UnifyingAstVisitor<Object> {
*
* Simpler tests should be defined in the class [SimpleParserTest].
*/
@ReflectiveTestCase()
@reflectiveTest
class ComplexParserTest extends ParserTestCase {
void test_additiveExpression_normal() {
BinaryExpression expression = ParserTestCase.parseExpression("x + y - z");
@ -584,7 +584,7 @@ class C {
* The class `ErrorParserTest` defines parser tests that test the parsing of code to ensure
* that errors are correctly reported, and in some cases, not reported.
*/
@ReflectiveTestCase()
@reflectiveTest
class ErrorParserTest extends ParserTestCase {
void fail_expectedListOrMapLiteral() {
// It isn't clear that this test can ever pass. The parser is currently
@ -2578,7 +2578,7 @@ class ErrorParserTest extends ParserTestCase {
}
}
@ReflectiveTestCase()
@reflectiveTest
class IncrementalParserTest extends EngineTestCase {
void fail_replace_identifier_with_functionLiteral_in_initializer_interp() {
// TODO(paulberry, brianwilkerson): broken due to incremental scanning bugs
@ -2969,7 +2969,7 @@ class C {
}
}
@ReflectiveTestCase()
@reflectiveTest
class NonErrorParserTest extends ParserTestCase {
void test_constFactory_external() {
ParserTestCase.parse(
@ -3267,7 +3267,7 @@ class ParserTestCase extends EngineTestCase {
* The class `RecoveryParserTest` defines parser tests that test the parsing of invalid code
* sequences to ensure that the correct recovery steps are taken in the parser.
*/
@ReflectiveTestCase()
@reflectiveTest
class RecoveryParserTest extends ParserTestCase {
void fail_incomplete_returnType() {
ParserTestCase.parseCompilationUnit(r'''
@ -4513,7 +4513,7 @@ class C {
}
}
@ReflectiveTestCase()
@reflectiveTest
class ResolutionCopierTest extends EngineTestCase {
void test_visitAnnotation() {
String annotationName = "proxy";
@ -5163,7 +5163,7 @@ class ResolutionCopierTest extends EngineTestCase {
*
* More complex tests should be defined in the class [ComplexParserTest].
*/
@ReflectiveTestCase()
@reflectiveTest
class SimpleParserTest extends ParserTestCase {
void fail_parseCommentReference_this() {
// This fails because we are returning null from the method and asserting

Some files were not shown because too many files have changed in this diff Show more