mirror of
https://github.com/dart-lang/sdk
synced 2024-09-22 11:42:02 +00:00
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:
parent
bf07d168c4
commit
a38a503d86
|
@ -21,7 +21,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class GetErrorsTest extends AbstractAnalysisTest {
|
class GetErrorsTest extends AbstractAnalysisTest {
|
||||||
static const String requestId = 'test-getError';
|
static const String requestId = 'test-getError';
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class AnalysisHoverTest extends AbstractAnalysisTest {
|
class AnalysisHoverTest extends AbstractAnalysisTest {
|
||||||
Future<HoverInformation> prepareHover(String search) {
|
Future<HoverInformation> prepareHover(String search) {
|
||||||
int offset = findOffset(search);
|
int offset = findOffset(search);
|
||||||
|
|
|
@ -19,7 +19,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class NotificationErrorsTest extends AbstractAnalysisTest {
|
class NotificationErrorsTest extends AbstractAnalysisTest {
|
||||||
Map<String, List<AnalysisError>> filesErrors = {};
|
Map<String, List<AnalysisError>> filesErrors = {};
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class AnalysisNotificationHighlightsTest extends AbstractAnalysisTest {
|
class AnalysisNotificationHighlightsTest extends AbstractAnalysisTest {
|
||||||
List<HighlightRegion> regions;
|
List<HighlightRegion> regions;
|
||||||
|
|
||||||
|
@ -1017,7 +1017,7 @@ part 'test.dart';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class HighlightTypeTest {
|
class HighlightTypeTest {
|
||||||
void test_constructor() {
|
void test_constructor() {
|
||||||
expect(
|
expect(
|
||||||
|
|
|
@ -20,7 +20,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class AnalysisNotificationNavigationTest extends AbstractAnalysisTest {
|
class AnalysisNotificationNavigationTest extends AbstractAnalysisTest {
|
||||||
List<NavigationRegion> regions;
|
List<NavigationRegion> regions;
|
||||||
List<NavigationTarget> targets;
|
List<NavigationTarget> targets;
|
||||||
|
|
|
@ -20,7 +20,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class AnalysisNotificationOccurrencesTest extends AbstractAnalysisTest {
|
class AnalysisNotificationOccurrencesTest extends AbstractAnalysisTest {
|
||||||
List<Occurrences> occurrencesList;
|
List<Occurrences> occurrencesList;
|
||||||
Occurrences testOccurences;
|
Occurrences testOccurences;
|
||||||
|
|
|
@ -19,7 +19,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class _AnalysisNotificationOutlineTest extends AbstractAnalysisTest {
|
class _AnalysisNotificationOutlineTest extends AbstractAnalysisTest {
|
||||||
Outline outline;
|
Outline outline;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class AnalysisNotificationOverridesTest extends AbstractAnalysisTest {
|
class AnalysisNotificationOverridesTest extends AbstractAnalysisTest {
|
||||||
List<Override> overridesList;
|
List<Override> overridesList;
|
||||||
Override override;
|
Override override;
|
||||||
|
|
|
@ -19,7 +19,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ReanalyzeTest extends AbstractAnalysisTest {
|
class ReanalyzeTest extends AbstractAnalysisTest {
|
||||||
test_reanalyze() {
|
test_reanalyze() {
|
||||||
createProject();
|
createProject();
|
||||||
|
|
|
@ -29,7 +29,7 @@ main() {
|
||||||
runReflectiveTests(AnalysisServerTest);
|
runReflectiveTests(AnalysisServerTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class AnalysisServerTest {
|
class AnalysisServerTest {
|
||||||
MockServerChannel channel;
|
MockServerChannel channel;
|
||||||
AnalysisServer server;
|
AnalysisServer server;
|
||||||
|
|
|
@ -25,7 +25,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ContextManagerTest {
|
class ContextManagerTest {
|
||||||
TestContextManager manager;
|
TestContextManager manager;
|
||||||
MemoryResourceProvider resourceProvider;
|
MemoryResourceProvider resourceProvider;
|
||||||
|
|
|
@ -352,7 +352,7 @@ testUpdateContent() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class AnalysisDomainTest extends AbstractAnalysisTest {
|
class AnalysisDomainTest extends AbstractAnalysisTest {
|
||||||
Map<String, List<AnalysisError>> filesErrors = {};
|
Map<String, List<AnalysisError>> filesErrors = {};
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ main() {
|
||||||
runReflectiveTests(CompletionTest);
|
runReflectiveTests(CompletionTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class CompletionManagerTest extends AbstractAnalysisTest {
|
class CompletionManagerTest extends AbstractAnalysisTest {
|
||||||
AnalysisDomainHandler analysisDomain;
|
AnalysisDomainHandler analysisDomain;
|
||||||
Test_CompletionDomainHandler completionDomain;
|
Test_CompletionDomainHandler completionDomain;
|
||||||
|
@ -242,7 +242,7 @@ class CompletionManagerTest extends AbstractAnalysisTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class CompletionTest extends AbstractAnalysisTest {
|
class CompletionTest extends AbstractAnalysisTest {
|
||||||
String completionId;
|
String completionId;
|
||||||
int completionOffset;
|
int completionOffset;
|
||||||
|
|
|
@ -20,7 +20,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class AssistsTest extends AbstractAnalysisTest {
|
class AssistsTest extends AbstractAnalysisTest {
|
||||||
List<SourceChange> changes;
|
List<SourceChange> changes;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class FixesTest extends AbstractAnalysisTest {
|
class FixesTest extends AbstractAnalysisTest {
|
||||||
@override
|
@override
|
||||||
void setUp() {
|
void setUp() {
|
||||||
|
|
|
@ -30,7 +30,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ConvertGetterMethodToMethodTest extends _AbstractGetRefactoring_Test {
|
class ConvertGetterMethodToMethodTest extends _AbstractGetRefactoring_Test {
|
||||||
test_function() {
|
test_function() {
|
||||||
addTestFile('''
|
addTestFile('''
|
||||||
|
@ -126,7 +126,7 @@ main(A a, B b, C c, D d) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ConvertMethodToGetterTest extends _AbstractGetRefactoring_Test {
|
class ConvertMethodToGetterTest extends _AbstractGetRefactoring_Test {
|
||||||
test_function() {
|
test_function() {
|
||||||
addTestFile('''
|
addTestFile('''
|
||||||
|
@ -240,7 +240,7 @@ main(A a, B b, C c, D d) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ExtractLocalVariableTest extends _AbstractGetRefactoring_Test {
|
class ExtractLocalVariableTest extends _AbstractGetRefactoring_Test {
|
||||||
Future<Response> sendExtractRequest(int offset, int length, String name,
|
Future<Response> sendExtractRequest(int offset, int length, String name,
|
||||||
bool extractAll) {
|
bool extractAll) {
|
||||||
|
@ -411,7 +411,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ExtractMethodTest extends _AbstractGetRefactoring_Test {
|
class ExtractMethodTest extends _AbstractGetRefactoring_Test {
|
||||||
int offset;
|
int offset;
|
||||||
int length;
|
int length;
|
||||||
|
@ -624,7 +624,7 @@ void res(int a, int b) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class GetAvailableRefactoringsTest extends AbstractAnalysisTest {
|
class GetAvailableRefactoringsTest extends AbstractAnalysisTest {
|
||||||
/**
|
/**
|
||||||
* Tests that there is a RENAME refactoring available at the [search] offset.
|
* Tests that there is a RENAME refactoring available at the [search] offset.
|
||||||
|
@ -805,7 +805,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class InlineLocalTest extends _AbstractGetRefactoring_Test {
|
class InlineLocalTest extends _AbstractGetRefactoring_Test {
|
||||||
test_feedback() {
|
test_feedback() {
|
||||||
addTestFile('''
|
addTestFile('''
|
||||||
|
@ -867,7 +867,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class InlineMethodTest extends _AbstractGetRefactoring_Test {
|
class InlineMethodTest extends _AbstractGetRefactoring_Test {
|
||||||
InlineMethodOptions options = new InlineMethodOptions(true, true);
|
InlineMethodOptions options = new InlineMethodOptions(true, true);
|
||||||
|
|
||||||
|
@ -994,7 +994,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class MoveFileTest extends _AbstractGetRefactoring_Test {
|
class MoveFileTest extends _AbstractGetRefactoring_Test {
|
||||||
MoveFileOptions options = new MoveFileOptions(null);
|
MoveFileOptions options = new MoveFileOptions(null);
|
||||||
|
|
||||||
|
@ -1026,7 +1026,7 @@ import 'bin/lib.dart';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class RenameTest extends _AbstractGetRefactoring_Test {
|
class RenameTest extends _AbstractGetRefactoring_Test {
|
||||||
Future<Response> sendRenameRequest(String search, String newName,
|
Future<Response> sendRenameRequest(String search, String newName,
|
||||||
[bool validateOnly = false]) {
|
[bool validateOnly = false]) {
|
||||||
|
@ -1580,7 +1580,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class _AbstractGetRefactoring_Test extends AbstractAnalysisTest {
|
class _AbstractGetRefactoring_Test extends AbstractAnalysisTest {
|
||||||
/**
|
/**
|
||||||
* Asserts that [problems] has a single ERROR problem.
|
* Asserts that [problems] has a single ERROR problem.
|
||||||
|
|
|
@ -21,7 +21,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class SortMembersTest extends AbstractAnalysisTest {
|
class SortMembersTest extends AbstractAnalysisTest {
|
||||||
SourceFileEdit fileEdit;
|
SourceFileEdit fileEdit;
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ main() {
|
||||||
runReflectiveTests(AnalysisErrorIntegrationTest);
|
runReflectiveTests(AnalysisErrorIntegrationTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class AnalysisErrorIntegrationTest extends AbstractAnalysisServerIntegrationTest
|
class AnalysisErrorIntegrationTest extends AbstractAnalysisServerIntegrationTest
|
||||||
{
|
{
|
||||||
test_detect_simple_error() {
|
test_detect_simple_error() {
|
||||||
|
|
|
@ -11,7 +11,7 @@ main() {
|
||||||
runReflectiveTests(Test);
|
runReflectiveTests(Test);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class Test extends AnalysisDomainGetErrorsTest {
|
class Test extends AnalysisDomainGetErrorsTest {
|
||||||
Test() : super(true);
|
Test() : super(true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ main() {
|
||||||
runReflectiveTests(Test);
|
runReflectiveTests(Test);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class Test extends AnalysisDomainGetErrorsTest {
|
class Test extends AnalysisDomainGetErrorsTest {
|
||||||
Test() : super(false);
|
Test() : super(false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ main() {
|
||||||
runReflectiveTests(AnalysisGetHoverIntegrationTest);
|
runReflectiveTests(AnalysisGetHoverIntegrationTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class AnalysisGetHoverIntegrationTest extends
|
class AnalysisGetHoverIntegrationTest extends
|
||||||
AbstractAnalysisServerIntegrationTest {
|
AbstractAnalysisServerIntegrationTest {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -14,7 +14,7 @@ main() {
|
||||||
runReflectiveTests(AnalysisHighlightsTest);
|
runReflectiveTests(AnalysisHighlightsTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class AnalysisHighlightsTest extends AbstractAnalysisServerIntegrationTest {
|
class AnalysisHighlightsTest extends AbstractAnalysisServerIntegrationTest {
|
||||||
test_highlights() {
|
test_highlights() {
|
||||||
String pathname = sourcePath('test.dart');
|
String pathname = sourcePath('test.dart');
|
||||||
|
|
|
@ -14,7 +14,7 @@ main() {
|
||||||
runReflectiveTests(AnalysisNavigationTest);
|
runReflectiveTests(AnalysisNavigationTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class AnalysisNavigationTest extends AbstractAnalysisServerIntegrationTest {
|
class AnalysisNavigationTest extends AbstractAnalysisServerIntegrationTest {
|
||||||
test_navigation() {
|
test_navigation() {
|
||||||
String pathname1 = sourcePath('test1.dart');
|
String pathname1 = sourcePath('test1.dart');
|
||||||
|
|
|
@ -14,7 +14,7 @@ main() {
|
||||||
runReflectiveTests(Test);
|
runReflectiveTests(Test);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class Test extends AbstractAnalysisServerIntegrationTest {
|
class Test extends AbstractAnalysisServerIntegrationTest {
|
||||||
test_occurrences() {
|
test_occurrences() {
|
||||||
String pathname = sourcePath('test.dart');
|
String pathname = sourcePath('test.dart');
|
||||||
|
|
|
@ -14,7 +14,7 @@ main() {
|
||||||
runReflectiveTests(Test);
|
runReflectiveTests(Test);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class Test extends AbstractAnalysisServerIntegrationTest {
|
class Test extends AbstractAnalysisServerIntegrationTest {
|
||||||
/**
|
/**
|
||||||
* Verify that the range of source text covered by the given outline objects
|
* Verify that the range of source text covered by the given outline objects
|
||||||
|
|
|
@ -14,7 +14,7 @@ main() {
|
||||||
runReflectiveTests(Test);
|
runReflectiveTests(Test);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class Test extends AbstractAnalysisServerIntegrationTest {
|
class Test extends AbstractAnalysisServerIntegrationTest {
|
||||||
test_overrides() {
|
test_overrides() {
|
||||||
String pathname = sourcePath('test.dart');
|
String pathname = sourcePath('test.dart');
|
||||||
|
|
|
@ -15,7 +15,7 @@ main() {
|
||||||
runReflectiveTests(Test);
|
runReflectiveTests(Test);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class Test extends AbstractAnalysisServerIntegrationTest {
|
class Test extends AbstractAnalysisServerIntegrationTest {
|
||||||
test_package_root() {
|
test_package_root() {
|
||||||
String projPath = sourcePath('project');
|
String projPath = sourcePath('project');
|
||||||
|
|
|
@ -19,7 +19,7 @@ main() {
|
||||||
runReflectiveTests(Test);
|
runReflectiveTests(Test);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class Test extends AbstractAnalysisServerIntegrationTest {
|
class Test extends AbstractAnalysisServerIntegrationTest {
|
||||||
test_reanalyze_concurrent() {
|
test_reanalyze_concurrent() {
|
||||||
String pathname = sourcePath('test.dart');
|
String pathname = sourcePath('test.dart');
|
||||||
|
|
|
@ -14,7 +14,7 @@ main() {
|
||||||
runReflectiveTests(Test);
|
runReflectiveTests(Test);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class Test extends AbstractAnalysisServerIntegrationTest {
|
class Test extends AbstractAnalysisServerIntegrationTest {
|
||||||
test_reanalyze() {
|
test_reanalyze() {
|
||||||
String pathname = sourcePath('test.dart');
|
String pathname = sourcePath('test.dart');
|
||||||
|
|
|
@ -14,7 +14,7 @@ main() {
|
||||||
runReflectiveTests(Test);
|
runReflectiveTests(Test);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class Test extends AbstractAnalysisServerIntegrationTest {
|
class Test extends AbstractAnalysisServerIntegrationTest {
|
||||||
test_updateContent_list() {
|
test_updateContent_list() {
|
||||||
String pathname = sourcePath('test.dart');
|
String pathname = sourcePath('test.dart');
|
||||||
|
|
|
@ -14,7 +14,7 @@ main() {
|
||||||
runReflectiveTests(Test);
|
runReflectiveTests(Test);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class Test extends AbstractAnalysisServerIntegrationTest {
|
class Test extends AbstractAnalysisServerIntegrationTest {
|
||||||
test_updateContent() {
|
test_updateContent() {
|
||||||
String pathname = sourcePath('test.dart');
|
String pathname = sourcePath('test.dart');
|
||||||
|
|
|
@ -24,7 +24,7 @@ main() {
|
||||||
* Once enough commands have been sent, we begin reading from the server's
|
* Once enough commands have been sent, we begin reading from the server's
|
||||||
* output buffer, and verify that it responds to the last command.
|
* output buffer, and verify that it responds to the last command.
|
||||||
*/
|
*/
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class AsynchronyIntegrationTest {
|
class AsynchronyIntegrationTest {
|
||||||
/**
|
/**
|
||||||
* Number of messages to queue up before listening for responses.
|
* Number of messages to queue up before listening for responses.
|
||||||
|
|
|
@ -15,7 +15,7 @@ main() {
|
||||||
runReflectiveTests(Test);
|
runReflectiveTests(Test);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class Test extends AbstractAnalysisServerIntegrationTest {
|
class Test extends AbstractAnalysisServerIntegrationTest {
|
||||||
fail_test_getSuggestions_string_var() {
|
fail_test_getSuggestions_string_var() {
|
||||||
// See dartbug.com/20188
|
// See dartbug.com/20188
|
||||||
|
|
|
@ -61,7 +61,7 @@ class HierarchyResults {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class Test extends AbstractAnalysisServerIntegrationTest {
|
class Test extends AbstractAnalysisServerIntegrationTest {
|
||||||
/**
|
/**
|
||||||
* Pathname of the main file to run tests in.
|
* Pathname of the main file to run tests in.
|
||||||
|
|
|
@ -11,7 +11,7 @@ main() {
|
||||||
runReflectiveTests(Test);
|
runReflectiveTests(Test);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class Test extends AbstractAnalysisServerIntegrationTest {
|
class Test extends AbstractAnalysisServerIntegrationTest {
|
||||||
test_getVersion() {
|
test_getVersion() {
|
||||||
return sendServerGetVersion();
|
return sendServerGetVersion();
|
||||||
|
|
|
@ -13,7 +13,7 @@ main() {
|
||||||
runReflectiveTests(Test);
|
runReflectiveTests(Test);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class Test extends AbstractAnalysisServerIntegrationTest {
|
class Test extends AbstractAnalysisServerIntegrationTest {
|
||||||
test_setSubscriptions_invalidService() {
|
test_setSubscriptions_invalidService() {
|
||||||
// TODO(paulberry): verify that if an invalid service is specified, the
|
// TODO(paulberry): verify that if an invalid service is specified, the
|
||||||
|
|
|
@ -16,7 +16,7 @@ main() {
|
||||||
runReflectiveTests(Test);
|
runReflectiveTests(Test);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class Test extends AbstractAnalysisServerIntegrationTest {
|
class Test extends AbstractAnalysisServerIntegrationTest {
|
||||||
test_setSubscriptions() {
|
test_setSubscriptions() {
|
||||||
bool statusReceived = false;
|
bool statusReceived = false;
|
||||||
|
|
|
@ -15,7 +15,7 @@ main() {
|
||||||
runReflectiveTests(Test);
|
runReflectiveTests(Test);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class Test extends AbstractAnalysisServerIntegrationTest {
|
class Test extends AbstractAnalysisServerIntegrationTest {
|
||||||
test_shutdown() {
|
test_shutdown() {
|
||||||
return sendServerShutdown().then((_) {
|
return sendServerShutdown().then((_) {
|
||||||
|
|
|
@ -16,7 +16,7 @@ main() {
|
||||||
runReflectiveTests(Test);
|
runReflectiveTests(Test);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class Test extends AbstractAnalysisServerIntegrationTest {
|
class Test extends AbstractAnalysisServerIntegrationTest {
|
||||||
test_status() {
|
test_status() {
|
||||||
// After we kick off analysis, we should get one server.status message with
|
// After we kick off analysis, we should get one server.status message with
|
||||||
|
|
|
@ -36,7 +36,7 @@ class AnalysisErrorMock extends TypedMock implements engine.AnalysisError {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class AnalysisErrorTest {
|
class AnalysisErrorTest {
|
||||||
engine.Source source = new MockSource();
|
engine.Source source = new MockSource();
|
||||||
engine.LineInfo lineInfo;
|
engine.LineInfo lineInfo;
|
||||||
|
@ -115,7 +115,7 @@ class AnalysisErrorTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ElementKindTest {
|
class ElementKindTest {
|
||||||
void test_fromEngine() {
|
void test_fromEngine() {
|
||||||
expect(
|
expect(
|
||||||
|
@ -216,7 +216,7 @@ class ElementKindTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ElementTest extends AbstractContextTest {
|
class ElementTest extends AbstractContextTest {
|
||||||
engine.Element findElementInUnit(engine.CompilationUnit unit, String name,
|
engine.Element findElementInUnit(engine.CompilationUnit unit, String name,
|
||||||
[engine.ElementKind kind]) {
|
[engine.ElementKind kind]) {
|
||||||
|
@ -413,7 +413,7 @@ class A {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class EnumTest {
|
class EnumTest {
|
||||||
void test_AnalysisErrorSeverity() {
|
void test_AnalysisErrorSeverity() {
|
||||||
new EnumTester<engine.ErrorSeverity, AnalysisErrorSeverity>().run(
|
new EnumTester<engine.ErrorSeverity, AnalysisErrorSeverity>().run(
|
||||||
|
|
|
@ -25,7 +25,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class InvalidParameterResponseMatcher extends Matcher {
|
class InvalidParameterResponseMatcher extends Matcher {
|
||||||
static const String ERROR_CODE = 'INVALID_PARAMETER';
|
static const String ERROR_CODE = 'INVALID_PARAMETER';
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ class InvalidParameterResponseMatcher extends Matcher {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class NotificationTest {
|
class NotificationTest {
|
||||||
void test_fromJson() {
|
void test_fromJson() {
|
||||||
Notification original = new Notification('foo');
|
Notification original = new Notification('foo');
|
||||||
|
@ -101,7 +101,7 @@ class NotificationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class RequestErrorTest {
|
class RequestErrorTest {
|
||||||
void test_create() {
|
void test_create() {
|
||||||
RequestError error =
|
RequestError error =
|
||||||
|
@ -141,7 +141,7 @@ class RequestErrorTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class RequestTest {
|
class RequestTest {
|
||||||
void test_fromJson() {
|
void test_fromJson() {
|
||||||
Request original = new Request('one', 'aMethod');
|
Request original = new Request('one', 'aMethod');
|
||||||
|
@ -207,7 +207,7 @@ class RequestTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ResponseTest {
|
class ResponseTest {
|
||||||
void test_create_invalidRequestFormat() {
|
void test_create_invalidRequestFormat() {
|
||||||
Response response = new Response.invalidRequestFormat();
|
Response response = new Response.invalidRequestFormat();
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
library reflective_tests;
|
library reflective_tests;
|
||||||
|
|
||||||
@MirrorsUsed(metaTargets: 'ReflectiveTestCase')
|
@MirrorsUsed(metaTargets: 'ReflectiveTest')
|
||||||
import 'dart:mirrors';
|
import 'dart:mirrors';
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
|
@ -31,10 +31,10 @@ void runReflectiveTests(Type type) {
|
||||||
ClassMirror classMirror = reflectClass(type);
|
ClassMirror classMirror = reflectClass(type);
|
||||||
if (!classMirror.metadata.any(
|
if (!classMirror.metadata.any(
|
||||||
(InstanceMirror annotation) =>
|
(InstanceMirror annotation) =>
|
||||||
annotation.type.reflectedType == ReflectiveTestCase)) {
|
annotation.type.reflectedType == ReflectiveTest)) {
|
||||||
String name = MirrorSystem.getName(classMirror.qualifiedName);
|
String name = MirrorSystem.getName(classMirror.qualifiedName);
|
||||||
throw new Exception(
|
throw new Exception(
|
||||||
'Class $name must have annotation "@ReflectiveTestCase()" '
|
'Class $name must have annotation "@reflectiveTest" '
|
||||||
'in order to be run by runReflectiveTests.');
|
'in order to be run by runReflectiveTests.');
|
||||||
}
|
}
|
||||||
String className = MirrorSystem.getName(classMirror.simpleName);
|
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
|
* A marker annotation used to instruct dart2js to keep reflection information
|
||||||
* for the annotated classes.
|
* for the annotated classes.
|
||||||
*/
|
*/
|
||||||
class ReflectiveTestCase {
|
class ReflectiveTest {
|
||||||
const ReflectiveTestCase();
|
const ReflectiveTest();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A marker annotation used to instruct dart2js to keep reflection information
|
||||||
|
* for the annotated classes.
|
||||||
|
*/
|
||||||
|
const ReflectiveTest reflectiveTest = const ReflectiveTest();
|
||||||
|
|
|
@ -19,7 +19,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ElementReferencesTest extends AbstractSearchDomainTest {
|
class ElementReferencesTest extends AbstractSearchDomainTest {
|
||||||
Element searchElement;
|
Element searchElement;
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class MemberDeclarationsTest extends AbstractSearchDomainTest {
|
class MemberDeclarationsTest extends AbstractSearchDomainTest {
|
||||||
void assertHasDeclaration(ElementKind kind, String className) {
|
void assertHasDeclaration(ElementKind kind, String className) {
|
||||||
result = findTopLevelResult(kind, className);
|
result = findTopLevelResult(kind, className);
|
||||||
|
|
|
@ -19,7 +19,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class MemberReferencesTest extends AbstractSearchDomainTest {
|
class MemberReferencesTest extends AbstractSearchDomainTest {
|
||||||
void assertHasRef(SearchResultKind kind, String search, bool isPotential) {
|
void assertHasRef(SearchResultKind kind, String search, bool isPotential) {
|
||||||
assertHasResult(kind, search);
|
assertHasResult(kind, search);
|
||||||
|
|
|
@ -17,7 +17,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class SearchResultKindTest {
|
class SearchResultKindTest {
|
||||||
void test_fromEngine() {
|
void test_fromEngine() {
|
||||||
expect(
|
expect(
|
||||||
|
|
|
@ -19,7 +19,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class TopLevelDeclarationsTest extends AbstractSearchDomainTest {
|
class TopLevelDeclarationsTest extends AbstractSearchDomainTest {
|
||||||
void assertHasDeclaration(ElementKind kind, String name) {
|
void assertHasDeclaration(ElementKind kind, String name) {
|
||||||
result = findTopLevelResult(kind, name);
|
result = findTopLevelResult(kind, name);
|
||||||
|
|
|
@ -22,7 +22,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class GetTypeHierarchyTest extends AbstractAnalysisTest {
|
class GetTypeHierarchyTest extends AbstractAnalysisTest {
|
||||||
static const String requestId = 'test-getTypeHierarchy';
|
static const String requestId = 'test-getTypeHierarchy';
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ main() {
|
||||||
runReflectiveTests(ArgListComputerTest);
|
runReflectiveTests(ArgListComputerTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ArgListComputerTest extends AbstractCompletionTest {
|
class ArgListComputerTest extends AbstractCompletionTest {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -17,7 +17,7 @@ main() {
|
||||||
runReflectiveTests(CombinatorComputerTest);
|
runReflectiveTests(CombinatorComputerTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class CombinatorComputerTest extends AbstractCompletionTest {
|
class CombinatorComputerTest extends AbstractCompletionTest {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -39,7 +39,7 @@ Future pumpEventQueue([int times = 20]) {
|
||||||
return new Future.delayed(Duration.ZERO, () => pumpEventQueue(times - 1));
|
return new Future.delayed(Duration.ZERO, () => pumpEventQueue(times - 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class DartCompletionManagerTest extends AbstractSingleUnitTest {
|
class DartCompletionManagerTest extends AbstractSingleUnitTest {
|
||||||
Index index;
|
Index index;
|
||||||
SearchEngineImpl searchEngine;
|
SearchEngineImpl searchEngine;
|
||||||
|
|
|
@ -17,7 +17,7 @@ main() {
|
||||||
runReflectiveTests(CompletionManagerTest);
|
runReflectiveTests(CompletionManagerTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class CompletionManagerTest extends AbstractContextTest {
|
class CompletionManagerTest extends AbstractContextTest {
|
||||||
var perf = new CompletionPerformance();
|
var perf = new CompletionPerformance();
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ main() {
|
||||||
runReflectiveTests(ImportedComputerTest);
|
runReflectiveTests(ImportedComputerTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ImportedComputerTest extends AbstractSelectorSuggestionTest {
|
class ImportedComputerTest extends AbstractSelectorSuggestionTest {
|
||||||
|
|
||||||
void assertCached(String completion) {
|
void assertCached(String completion) {
|
||||||
|
|
|
@ -18,7 +18,7 @@ main() {
|
||||||
runReflectiveTests(InvocationComputerTest);
|
runReflectiveTests(InvocationComputerTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class InvocationComputerTest extends AbstractSelectorSuggestionTest {
|
class InvocationComputerTest extends AbstractSelectorSuggestionTest {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -18,7 +18,7 @@ main() {
|
||||||
runReflectiveTests(KeywordComputerTest);
|
runReflectiveTests(KeywordComputerTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class KeywordComputerTest extends AbstractCompletionTest {
|
class KeywordComputerTest extends AbstractCompletionTest {
|
||||||
|
|
||||||
void assertSuggestKeywords(Iterable<Keyword> expectedKeywords,
|
void assertSuggestKeywords(Iterable<Keyword> expectedKeywords,
|
||||||
|
|
|
@ -17,7 +17,7 @@ main() {
|
||||||
runReflectiveTests(LocalComputerTest);
|
runReflectiveTests(LocalComputerTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class LocalComputerTest extends AbstractSelectorSuggestionTest {
|
class LocalComputerTest extends AbstractSelectorSuggestionTest {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -19,7 +19,7 @@ main() {
|
||||||
runReflectiveTests(OpTypeTest);
|
runReflectiveTests(OpTypeTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class OpTypeTest {
|
class OpTypeTest {
|
||||||
|
|
||||||
OpType visitor;
|
OpType visitor;
|
||||||
|
|
|
@ -22,7 +22,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class AssistProcessorTest extends AbstractSingleUnitTest {
|
class AssistProcessorTest extends AbstractSingleUnitTest {
|
||||||
Index index;
|
Index index;
|
||||||
SearchEngineImpl searchEngine;
|
SearchEngineImpl searchEngine;
|
||||||
|
|
|
@ -23,7 +23,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ChangeTest {
|
class ChangeTest {
|
||||||
void test_addEdit() {
|
void test_addEdit() {
|
||||||
SourceChange change = new SourceChange('msg');
|
SourceChange change = new SourceChange('msg');
|
||||||
|
@ -141,7 +141,7 @@ class ChangeTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class EditTest {
|
class EditTest {
|
||||||
void test_applySequence() {
|
void test_applySequence() {
|
||||||
SourceEdit edit1 = new SourceEdit(5, 2, 'abc');
|
SourceEdit edit1 = new SourceEdit(5, 2, 'abc');
|
||||||
|
@ -193,7 +193,7 @@ class EditTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class FileEditTest {
|
class FileEditTest {
|
||||||
void test_add_sorts() {
|
void test_add_sorts() {
|
||||||
SourceEdit edit1a = new SourceEdit(1, 0, 'a1');
|
SourceEdit edit1a = new SourceEdit(1, 0, 'a1');
|
||||||
|
@ -251,7 +251,7 @@ class FileEditTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class LinkedEditGroupTest {
|
class LinkedEditGroupTest {
|
||||||
void test_new() {
|
void test_new() {
|
||||||
LinkedEditGroup group = new LinkedEditGroup.empty();
|
LinkedEditGroup group = new LinkedEditGroup.empty();
|
||||||
|
@ -292,7 +292,7 @@ class LinkedEditGroupTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class LinkedEditSuggestionTest {
|
class LinkedEditSuggestionTest {
|
||||||
void test_eqEq() {
|
void test_eqEq() {
|
||||||
var a = new LinkedEditSuggestion('a', LinkedEditSuggestionKind.METHOD);
|
var a = new LinkedEditSuggestion('a', LinkedEditSuggestionKind.METHOD);
|
||||||
|
@ -308,7 +308,7 @@ class LinkedEditSuggestionTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class PositionTest {
|
class PositionTest {
|
||||||
void test_eqEq() {
|
void test_eqEq() {
|
||||||
Position a = new Position('/a.dart', 1);
|
Position a = new Position('/a.dart', 1);
|
||||||
|
|
|
@ -26,7 +26,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class FixProcessorTest extends AbstractSingleUnitTest {
|
class FixProcessorTest extends AbstractSingleUnitTest {
|
||||||
Index index;
|
Index index;
|
||||||
SearchEngineImpl searchEngine;
|
SearchEngineImpl searchEngine;
|
||||||
|
|
|
@ -15,7 +15,7 @@ main() {
|
||||||
runReflectiveTests(LevenshteinTest);
|
runReflectiveTests(LevenshteinTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class LevenshteinTest {
|
class LevenshteinTest {
|
||||||
void test_different_caseInsensitive() {
|
void test_different_caseInsensitive() {
|
||||||
expect(levenshtein('Saturday', 'sunday', 5, caseSensitive: false), 3);
|
expect(levenshtein('Saturday', 'sunday', 5, caseSensitive: false), 3);
|
||||||
|
|
|
@ -19,7 +19,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class VariableNameSuggestionTest extends AbstractSingleUnitTest {
|
class VariableNameSuggestionTest extends AbstractSingleUnitTest {
|
||||||
void test_forExpression_cast() {
|
void test_forExpression_cast() {
|
||||||
resolveTestUnit('''
|
resolveTestUnit('''
|
||||||
|
|
|
@ -18,7 +18,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class SortMembersTest extends AbstractSingleUnitTest {
|
class SortMembersTest extends AbstractSingleUnitTest {
|
||||||
void test_classMembers_accessor() {
|
void test_classMembers_accessor() {
|
||||||
_parseTestUnit(r'''
|
_parseTestUnit(r'''
|
||||||
|
|
|
@ -22,7 +22,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class SourceRangesTest extends AbstractSingleUnitTest {
|
class SourceRangesTest extends AbstractSingleUnitTest {
|
||||||
void test_rangeElementName() {
|
void test_rangeElementName() {
|
||||||
resolveTestUnit('class ABC {}');
|
resolveTestUnit('class ABC {}');
|
||||||
|
|
|
@ -24,7 +24,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class RefactoringLocationTest extends AbstractSingleUnitTest {
|
class RefactoringLocationTest extends AbstractSingleUnitTest {
|
||||||
void test_createLocation_forElement() {
|
void test_createLocation_forElement() {
|
||||||
resolveTestUnit('class MyClass {}');
|
resolveTestUnit('class MyClass {}');
|
||||||
|
@ -75,7 +75,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class RefactoringStatusTest {
|
class RefactoringStatusTest {
|
||||||
void test_addError() {
|
void test_addError() {
|
||||||
RefactoringStatus refactoringStatus = new RefactoringStatus();
|
RefactoringStatus refactoringStatus = new RefactoringStatus();
|
||||||
|
|
|
@ -17,7 +17,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class StringsTest {
|
class StringsTest {
|
||||||
void test_capitalize() {
|
void test_capitalize() {
|
||||||
expect(capitalize(''), '');
|
expect(capitalize(''), '');
|
||||||
|
|
|
@ -61,7 +61,7 @@ bool _equalsRecordedRelation(RecordedRelation recordedRelation,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class DartUnitContributorTest extends AbstractSingleUnitTest {
|
class DartUnitContributorTest extends AbstractSingleUnitTest {
|
||||||
IndexStore store = new MockIndexStore();
|
IndexStore store = new MockIndexStore();
|
||||||
List<RecordedRelation> recordedRelations = <RecordedRelation>[];
|
List<RecordedRelation> recordedRelations = <RecordedRelation>[];
|
||||||
|
|
|
@ -35,7 +35,7 @@ Iterable<String> _toElementNames(List<Location> locations) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class LocalIndexTest extends AbstractContextTest {
|
class LocalIndexTest extends AbstractContextTest {
|
||||||
LocalIndex index;
|
LocalIndex index;
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class _ContextCodecTest {
|
class _ContextCodecTest {
|
||||||
ContextCodec codec = new ContextCodec();
|
ContextCodec codec = new ContextCodec();
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ class _ContextCodecTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class _ElementCodecTest extends AbstractSingleUnitTest {
|
class _ElementCodecTest extends AbstractSingleUnitTest {
|
||||||
ElementCodec codec;
|
ElementCodec codec;
|
||||||
AnalysisContext context = new MockAnalysisContext('context');
|
AnalysisContext context = new MockAnalysisContext('context');
|
||||||
|
@ -201,7 +201,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class _RelationshipCodecTest {
|
class _RelationshipCodecTest {
|
||||||
StringCodec stringCodec = new StringCodec();
|
StringCodec stringCodec = new StringCodec();
|
||||||
RelationshipCodec codec;
|
RelationshipCodec codec;
|
||||||
|
@ -218,7 +218,7 @@ class _RelationshipCodecTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class _StringCodecTest {
|
class _StringCodecTest {
|
||||||
StringCodec codec = new StringCodec();
|
StringCodec codec = new StringCodec();
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class _IntArrayToIntMapTest {
|
class _IntArrayToIntMapTest {
|
||||||
IntArrayToIntMap map = new IntArrayToIntMap();
|
IntArrayToIntMap map = new IntArrayToIntMap();
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ class _IntArrayToIntMapTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class _IntToIntSetMapTest {
|
class _IntToIntSetMapTest {
|
||||||
IntToIntSetMap map = new IntToIntSetMap();
|
IntToIntSetMap map = new IntToIntSetMap();
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ void _assertHasLocationQ(List<Location> locations, Element element, int offset,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class _FileNodeManagerTest {
|
class _FileNodeManagerTest {
|
||||||
MockLogger logger = new MockLogger();
|
MockLogger logger = new MockLogger();
|
||||||
StringCodec stringCodec = new StringCodec();
|
StringCodec stringCodec = new StringCodec();
|
||||||
|
@ -255,7 +255,7 @@ class _FileNodeManagerTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class _IndexNodeTest {
|
class _IndexNodeTest {
|
||||||
AnalysisContext context = new MockAnalysisContext('context');
|
AnalysisContext context = new MockAnalysisContext('context');
|
||||||
ElementCodec elementCodec = new MockElementCodec();
|
ElementCodec elementCodec = new MockElementCodec();
|
||||||
|
@ -341,7 +341,7 @@ class _IndexNodeTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class _LocationDataTest {
|
class _LocationDataTest {
|
||||||
AnalysisContext context = new MockAnalysisContext('context');
|
AnalysisContext context = new MockAnalysisContext('context');
|
||||||
ElementCodec elementCodec = new MockElementCodec();
|
ElementCodec elementCodec = new MockElementCodec();
|
||||||
|
@ -426,7 +426,7 @@ class _MockIndexNode extends TypedMock implements IndexNode {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class _RelationKeyDataTest {
|
class _RelationKeyDataTest {
|
||||||
AnalysisContext context = new MockAnalysisContext('context');
|
AnalysisContext context = new MockAnalysisContext('context');
|
||||||
ElementCodec elementCodec = new MockElementCodec();
|
ElementCodec elementCodec = new MockElementCodec();
|
||||||
|
@ -478,7 +478,7 @@ class _RelationKeyDataTest {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class _SplitIndexStoreTest {
|
class _SplitIndexStoreTest {
|
||||||
AnalysisContext contextA = new MockAnalysisContext('contextA');
|
AnalysisContext contextA = new MockAnalysisContext('contextA');
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class _SeparateFileManagerTest {
|
class _SeparateFileManagerTest {
|
||||||
TemporaryFolderFileManager fileManager;
|
TemporaryFolderFileManager fileManager;
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ConvertGetterToMethodTest extends RefactoringTest {
|
class ConvertGetterToMethodTest extends RefactoringTest {
|
||||||
ConvertGetterToMethodRefactoring refactoring;
|
ConvertGetterToMethodRefactoring refactoring;
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ConvertMethodToGetterTest extends RefactoringTest {
|
class ConvertMethodToGetterTest extends RefactoringTest {
|
||||||
ConvertMethodToGetterRefactoring refactoring;
|
ConvertMethodToGetterRefactoring refactoring;
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ExtractLocalTest extends RefactoringTest {
|
class ExtractLocalTest extends RefactoringTest {
|
||||||
ExtractLocalRefactoringImpl refactoring;
|
ExtractLocalRefactoringImpl refactoring;
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ExtractMethodTest extends RefactoringTest {
|
class ExtractMethodTest extends RefactoringTest {
|
||||||
ExtractMethodRefactoringImpl refactoring;
|
ExtractMethodRefactoringImpl refactoring;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class InlineLocalTest extends RefactoringTest {
|
class InlineLocalTest extends RefactoringTest {
|
||||||
InlineLocalRefactoringImpl refactoring;
|
InlineLocalRefactoringImpl refactoring;
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class InlineMethodTest extends RefactoringTest {
|
class InlineMethodTest extends RefactoringTest {
|
||||||
InlineMethodRefactoringImpl refactoring;
|
InlineMethodRefactoringImpl refactoring;
|
||||||
bool deleteSource;
|
bool deleteSource;
|
||||||
|
|
|
@ -25,7 +25,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class MoveFileTest extends RefactoringTest {
|
class MoveFileTest extends RefactoringTest {
|
||||||
MoveFileRefactoring refactoring;
|
MoveFileRefactoring refactoring;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class NamingConventionsTest extends RefactoringTest {
|
class NamingConventionsTest extends RefactoringTest {
|
||||||
@override
|
@override
|
||||||
Refactoring get refactoring => null;
|
Refactoring get refactoring => null;
|
||||||
|
|
|
@ -17,7 +17,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class RenameClassMemberTest extends RenameRefactoringTest {
|
class RenameClassMemberTest extends RenameRefactoringTest {
|
||||||
test_checkFinalConditions_hasMember_MethodElement() {
|
test_checkFinalConditions_hasMember_MethodElement() {
|
||||||
indexTestUnit('''
|
indexTestUnit('''
|
||||||
|
|
|
@ -19,7 +19,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class RenameConstructorTest extends RenameRefactoringTest {
|
class RenameConstructorTest extends RenameRefactoringTest {
|
||||||
test_checkFinalConditions_hasMember_constructor() {
|
test_checkFinalConditions_hasMember_constructor() {
|
||||||
indexTestUnit('''
|
indexTestUnit('''
|
||||||
|
|
|
@ -18,7 +18,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class RenameImportTest extends RenameRefactoringTest {
|
class RenameImportTest extends RenameRefactoringTest {
|
||||||
test_checkNewName() {
|
test_checkNewName() {
|
||||||
indexTestUnit("import 'dart:async' as test;");
|
indexTestUnit("import 'dart:async' as test;");
|
||||||
|
|
|
@ -17,7 +17,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class RenameLabelTest extends RenameRefactoringTest {
|
class RenameLabelTest extends RenameRefactoringTest {
|
||||||
test_checkNewName_LocalVariableElement() {
|
test_checkNewName_LocalVariableElement() {
|
||||||
indexTestUnit('''
|
indexTestUnit('''
|
||||||
|
|
|
@ -19,7 +19,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class RenameLibraryTest extends RenameRefactoringTest {
|
class RenameLibraryTest extends RenameRefactoringTest {
|
||||||
void test_checkNewName() {
|
void test_checkNewName() {
|
||||||
indexTestUnit('''
|
indexTestUnit('''
|
||||||
|
|
|
@ -17,7 +17,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class RenameLocalTest extends RenameRefactoringTest {
|
class RenameLocalTest extends RenameRefactoringTest {
|
||||||
test_checkFinalConditions_hasLocalFunction_after() {
|
test_checkFinalConditions_hasLocalFunction_after() {
|
||||||
indexTestUnit('''
|
indexTestUnit('''
|
||||||
|
|
|
@ -17,7 +17,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class RenameUnitMemberTest extends RenameRefactoringTest {
|
class RenameUnitMemberTest extends RenameRefactoringTest {
|
||||||
test_checkFinalConditions_hasTopLevel_ClassElement() {
|
test_checkFinalConditions_hasTopLevel_ClassElement() {
|
||||||
indexTestUnit('''
|
indexTestUnit('''
|
||||||
|
|
|
@ -23,7 +23,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class HierarchyTest extends AbstractSingleUnitTest {
|
class HierarchyTest extends AbstractSingleUnitTest {
|
||||||
Index index;
|
Index index;
|
||||||
SearchEngineImpl searchEngine;
|
SearchEngineImpl searchEngine;
|
||||||
|
|
|
@ -68,7 +68,7 @@ class MockIndex extends TypedMock implements Index {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class SearchEngineImplTest extends AbstractSingleUnitTest {
|
class SearchEngineImplTest extends AbstractSingleUnitTest {
|
||||||
Index index;
|
Index index;
|
||||||
SearchEngineImpl searchEngine;
|
SearchEngineImpl searchEngine;
|
||||||
|
|
|
@ -16,7 +16,7 @@ void main() {
|
||||||
runReflectiveTests(CancelableFutureTests);
|
runReflectiveTests(CancelableFutureTests);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class CancelableFutureTests {
|
class CancelableFutureTests {
|
||||||
Future test_defaultConstructor_returnValue() {
|
Future test_defaultConstructor_returnValue() {
|
||||||
Object obj = new Object();
|
Object obj = new Object();
|
||||||
|
@ -140,7 +140,7 @@ class CancelableFutureTests {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class CancelableCompleterTests {
|
class CancelableCompleterTests {
|
||||||
CancelableCompleter<Object> completer;
|
CancelableCompleter<Object> completer;
|
||||||
int cancelCount = 0;
|
int cancelCount = 0;
|
||||||
|
|
|
@ -25,7 +25,7 @@ void main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class EnumTest {
|
class EnumTest {
|
||||||
void test_AnalysisLevel() {
|
void test_AnalysisLevel() {
|
||||||
new EnumTester<AnalysisLevel>()
|
new EnumTester<AnalysisLevel>()
|
||||||
|
|
|
@ -449,7 +449,7 @@ abstract class AbstractScannerTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ConstantEvaluatorTest extends ResolverTestCase {
|
class ConstantEvaluatorTest extends ResolverTestCase {
|
||||||
void fail_constructor() {
|
void fail_constructor() {
|
||||||
EvaluationResult result = _getExpressionValue("?");
|
EvaluationResult result = _getExpressionValue("?");
|
||||||
|
@ -834,7 +834,7 @@ class ConstantEvaluatorTest extends ResolverTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ConstantFinderTest extends EngineTestCase {
|
class ConstantFinderTest extends EngineTestCase {
|
||||||
AstNode _node;
|
AstNode _node;
|
||||||
|
|
||||||
|
@ -970,7 +970,7 @@ class ConstantFinderTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ConstantValueComputerTest extends ResolverTestCase {
|
class ConstantValueComputerTest extends ResolverTestCase {
|
||||||
void test_annotation_constConstructor() {
|
void test_annotation_constConstructor() {
|
||||||
CompilationUnit compilationUnit = resolveSource(r'''
|
CompilationUnit compilationUnit = resolveSource(r'''
|
||||||
|
@ -2204,7 +2204,7 @@ class ConstantValueComputerTest_ValidatingConstantVisitor extends
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ConstantVisitorTest extends ResolverTestCase {
|
class ConstantVisitorTest extends ResolverTestCase {
|
||||||
void test_visitConditionalExpression_false() {
|
void test_visitConditionalExpression_false() {
|
||||||
Expression thenExpression = AstFactory.integer(1);
|
Expression thenExpression = AstFactory.integer(1);
|
||||||
|
@ -2376,7 +2376,7 @@ const b = 3;''');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ContentCacheTest {
|
class ContentCacheTest {
|
||||||
void test_setContents() {
|
void test_setContents() {
|
||||||
Source source = new TestSource();
|
Source source = new TestSource();
|
||||||
|
@ -2396,7 +2396,7 @@ class ContentCacheTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class DartObjectImplTest extends EngineTestCase {
|
class DartObjectImplTest extends EngineTestCase {
|
||||||
TypeProvider _typeProvider = new TestTypeProvider();
|
TypeProvider _typeProvider = new TestTypeProvider();
|
||||||
|
|
||||||
|
@ -4645,7 +4645,7 @@ class DartObjectImplTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class DartUriResolverTest {
|
class DartUriResolverTest {
|
||||||
void test_creation() {
|
void test_creation() {
|
||||||
JavaFile sdkDirectory = DirectoryBasedDartSdk.defaultSdkDirectory;
|
JavaFile sdkDirectory = DirectoryBasedDartSdk.defaultSdkDirectory;
|
||||||
|
@ -4691,7 +4691,7 @@ class DartUriResolverTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class DeclaredVariablesTest extends EngineTestCase {
|
class DeclaredVariablesTest extends EngineTestCase {
|
||||||
void test_getBool_false() {
|
void test_getBool_false() {
|
||||||
TestTypeProvider typeProvider = new TestTypeProvider();
|
TestTypeProvider typeProvider = new TestTypeProvider();
|
||||||
|
@ -4793,7 +4793,7 @@ class DeclaredVariablesTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class DirectoryBasedDartSdkTest {
|
class DirectoryBasedDartSdkTest {
|
||||||
void fail_getDocFileFor() {
|
void fail_getDocFileFor() {
|
||||||
DirectoryBasedDartSdk sdk = _createDartSdk();
|
DirectoryBasedDartSdk sdk = _createDartSdk();
|
||||||
|
@ -4906,7 +4906,7 @@ class DirectoryBasedDartSdkTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class DirectoryBasedSourceContainerTest {
|
class DirectoryBasedSourceContainerTest {
|
||||||
void test_contains() {
|
void test_contains() {
|
||||||
JavaFile dir = FileUtilities2.createFile("/does/not/exist");
|
JavaFile dir = FileUtilities2.createFile("/does/not/exist");
|
||||||
|
@ -4926,7 +4926,7 @@ class DirectoryBasedSourceContainerTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ElementBuilderTest extends EngineTestCase {
|
class ElementBuilderTest extends EngineTestCase {
|
||||||
void test_visitCatchClause() {
|
void test_visitCatchClause() {
|
||||||
ElementHolder holder = new ElementHolder();
|
ElementHolder holder = new ElementHolder();
|
||||||
|
@ -6183,7 +6183,7 @@ class ElementBuilderTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ElementLocatorTest extends ResolverTestCase {
|
class ElementLocatorTest extends ResolverTestCase {
|
||||||
void fail_locate_ExportDirective() {
|
void fail_locate_ExportDirective() {
|
||||||
AstNode id = _findNodeIn("export", "export 'dart:core';");
|
AstNode id = _findNodeIn("export", "export 'dart:core';");
|
||||||
|
@ -6654,7 +6654,7 @@ core.int value;''');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class EnumMemberBuilderTest extends EngineTestCase {
|
class EnumMemberBuilderTest extends EngineTestCase {
|
||||||
void test_visitEnumDeclaration_multiple() {
|
void test_visitEnumDeclaration_multiple() {
|
||||||
String firstName = "ONE";
|
String firstName = "ONE";
|
||||||
|
@ -6737,7 +6737,7 @@ class EnumMemberBuilderTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ErrorReporterTest extends EngineTestCase {
|
class ErrorReporterTest extends EngineTestCase {
|
||||||
/**
|
/**
|
||||||
* Create a type with the given name in a compilation unit with the given name.
|
* 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 {
|
class ErrorSeverityTest extends EngineTestCase {
|
||||||
void test_max_error_error() {
|
void test_max_error_error() {
|
||||||
expect(
|
expect(
|
||||||
|
@ -6848,7 +6848,7 @@ class ErrorSeverityTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ExitDetectorTest extends ParserTestCase {
|
class ExitDetectorTest extends ParserTestCase {
|
||||||
void fail_doStatement_continue_with_label() {
|
void fail_doStatement_continue_with_label() {
|
||||||
_assertFalse("{ x: do { continue x; } while(true); }");
|
_assertFalse("{ x: do { continue x; } while(true); }");
|
||||||
|
@ -7338,7 +7338,7 @@ class ExitDetectorTest extends ParserTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class FileBasedSourceTest {
|
class FileBasedSourceTest {
|
||||||
void test_equals_false_differentFiles() {
|
void test_equals_false_differentFiles() {
|
||||||
JavaFile file1 = FileUtilities2.createFile("/does/not/exist1.dart");
|
JavaFile file1 = FileUtilities2.createFile("/does/not/exist1.dart");
|
||||||
|
@ -7555,7 +7555,7 @@ class FileBasedSourceTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class FileUriResolverTest {
|
class FileUriResolverTest {
|
||||||
void test_creation() {
|
void test_creation() {
|
||||||
expect(new FileUriResolver(), isNotNull);
|
expect(new FileUriResolver(), isNotNull);
|
||||||
|
@ -7580,7 +7580,7 @@ class FileUriResolverTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class HtmlParserTest extends EngineTestCase {
|
class HtmlParserTest extends EngineTestCase {
|
||||||
/**
|
/**
|
||||||
* The name of the 'script' tag in an HTML file.
|
* The name of the 'script' tag in an HTML file.
|
||||||
|
@ -7764,7 +7764,7 @@ $scriptBody
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class HtmlTagInfoBuilderTest extends HtmlParserTest {
|
class HtmlTagInfoBuilderTest extends HtmlParserTest {
|
||||||
void test_builder() {
|
void test_builder() {
|
||||||
HtmlTagInfoBuilder builder = new HtmlTagInfoBuilder();
|
HtmlTagInfoBuilder builder = new HtmlTagInfoBuilder();
|
||||||
|
@ -7788,7 +7788,7 @@ class HtmlTagInfoBuilderTest extends HtmlParserTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class HtmlUnitBuilderTest extends EngineTestCase {
|
class HtmlUnitBuilderTest extends EngineTestCase {
|
||||||
AnalysisContextImpl _context;
|
AnalysisContextImpl _context;
|
||||||
@override
|
@override
|
||||||
|
@ -7926,7 +7926,7 @@ class HtmlUnitBuilderTest_ExpectedVariable {
|
||||||
/**
|
/**
|
||||||
* Instances of the class `HtmlWarningCodeTest` test the generation of HTML warning codes.
|
* Instances of the class `HtmlWarningCodeTest` test the generation of HTML warning codes.
|
||||||
*/
|
*/
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class HtmlWarningCodeTest extends EngineTestCase {
|
class HtmlWarningCodeTest extends EngineTestCase {
|
||||||
/**
|
/**
|
||||||
* The source factory used to create the sources to be resolved.
|
* 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 {
|
class ReferenceFinderTest extends EngineTestCase {
|
||||||
DirectedGraph<AstNode> _referenceGraph;
|
DirectedGraph<AstNode> _referenceGraph;
|
||||||
Map<VariableElement, VariableDeclaration> _variableDeclarationMap;
|
Map<VariableElement, VariableDeclaration> _variableDeclarationMap;
|
||||||
|
@ -8200,7 +8200,7 @@ class ReferenceFinderTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class SDKLibrariesReaderTest extends EngineTestCase {
|
class SDKLibrariesReaderTest extends EngineTestCase {
|
||||||
void test_readFrom_dart2js() {
|
void test_readFrom_dart2js() {
|
||||||
LibraryMap libraryMap = new SdkLibrariesReader(
|
LibraryMap libraryMap = new SdkLibrariesReader(
|
||||||
|
@ -8272,7 +8272,7 @@ final Map<String, LibraryInfo> LIBRARIES = const <String, LibraryInfo> {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class SourceFactoryTest {
|
class SourceFactoryTest {
|
||||||
void test_creation() {
|
void test_creation() {
|
||||||
expect(new SourceFactory([]), isNotNull);
|
expect(new SourceFactory([]), isNotNull);
|
||||||
|
@ -8340,7 +8340,7 @@ class SourceFactoryTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class StringScannerTest extends AbstractScannerTest {
|
class StringScannerTest extends AbstractScannerTest {
|
||||||
@override
|
@override
|
||||||
ht.AbstractScanner newScanner(String input) {
|
ht.AbstractScanner newScanner(String input) {
|
||||||
|
@ -8352,7 +8352,7 @@ class StringScannerTest extends AbstractScannerTest {
|
||||||
/**
|
/**
|
||||||
* Instances of the class `ToSourceVisitorTest`
|
* Instances of the class `ToSourceVisitorTest`
|
||||||
*/
|
*/
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ToSourceVisitorTest extends EngineTestCase {
|
class ToSourceVisitorTest extends EngineTestCase {
|
||||||
void fail_visitHtmlScriptTagNode_attributes_content() {
|
void fail_visitHtmlScriptTagNode_attributes_content() {
|
||||||
_assertSource(
|
_assertSource(
|
||||||
|
@ -8407,7 +8407,7 @@ class ToSourceVisitorTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class UriKindTest {
|
class UriKindTest {
|
||||||
void test_fromEncoding() {
|
void test_fromEncoding() {
|
||||||
expect(UriKind.fromEncoding(0x64), same(UriKind.DART_URI));
|
expect(UriKind.fromEncoding(0x64), same(UriKind.DART_URI));
|
||||||
|
|
|
@ -95,7 +95,7 @@ class BreadthFirstVisitor_BreadthFirstVisitorTest_testIt extends
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class BreadthFirstVisitorTest extends ParserTestCase {
|
class BreadthFirstVisitorTest extends ParserTestCase {
|
||||||
void test_it() {
|
void test_it() {
|
||||||
String source = r'''
|
String source = r'''
|
||||||
|
@ -147,7 +147,7 @@ A f(var p) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ClassDeclarationTest extends ParserTestCase {
|
class ClassDeclarationTest extends ParserTestCase {
|
||||||
void test_getConstructor() {
|
void test_getConstructor() {
|
||||||
List<ConstructorInitializer> initializers =
|
List<ConstructorInitializer> initializers =
|
||||||
|
@ -246,7 +246,7 @@ class ClassDeclarationTest extends ParserTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ClassTypeAliasTest extends ParserTestCase {
|
class ClassTypeAliasTest extends ParserTestCase {
|
||||||
void test_isAbstract() {
|
void test_isAbstract() {
|
||||||
expect(
|
expect(
|
||||||
|
@ -264,7 +264,7 @@ class ClassTypeAliasTest extends ParserTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ConstantEvaluatorTest extends ParserTestCase {
|
class ConstantEvaluatorTest extends ParserTestCase {
|
||||||
void fail_constructor() {
|
void fail_constructor() {
|
||||||
Object value = _getConstantValue("?");
|
Object value = _getConstantValue("?");
|
||||||
|
@ -582,7 +582,7 @@ class ConstantEvaluatorTest extends ParserTestCase {
|
||||||
ParserTestCase.parseExpression(source).accept(new ConstantEvaluator());
|
ParserTestCase.parseExpression(source).accept(new ConstantEvaluator());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ConstructorDeclarationTest extends EngineTestCase {
|
class ConstructorDeclarationTest extends EngineTestCase {
|
||||||
void test_firstTokenAfterCommentAndMetadata_all_inverted() {
|
void test_firstTokenAfterCommentAndMetadata_all_inverted() {
|
||||||
Token externalKeyword = TokenFactory.tokenFromKeyword(Keyword.EXTERNAL);
|
Token externalKeyword = TokenFactory.tokenFromKeyword(Keyword.EXTERNAL);
|
||||||
|
@ -662,7 +662,7 @@ class ConstructorDeclarationTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class IndexExpressionTest extends EngineTestCase {
|
class IndexExpressionTest extends EngineTestCase {
|
||||||
void test_inGetterContext_assignment_compound_left() {
|
void test_inGetterContext_assignment_compound_left() {
|
||||||
IndexExpression expression = AstFactory.indexExpression(
|
IndexExpression expression = AstFactory.indexExpression(
|
||||||
|
@ -797,7 +797,7 @@ class IndexExpressionTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class NodeListTest extends EngineTestCase {
|
class NodeListTest extends EngineTestCase {
|
||||||
void test_add() {
|
void test_add() {
|
||||||
AstNode parent = AstFactory.argumentList();
|
AstNode parent = AstFactory.argumentList();
|
||||||
|
@ -1025,7 +1025,7 @@ class NodeListTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class NodeLocatorTest extends ParserTestCase {
|
class NodeLocatorTest extends ParserTestCase {
|
||||||
void test_range() {
|
void test_range() {
|
||||||
CompilationUnit unit =
|
CompilationUnit unit =
|
||||||
|
@ -1087,7 +1087,7 @@ class B {}''');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class SimpleIdentifierTest extends ParserTestCase {
|
class SimpleIdentifierTest extends ParserTestCase {
|
||||||
void test_inDeclarationContext_catch_exception() {
|
void test_inDeclarationContext_catch_exception() {
|
||||||
SimpleIdentifier identifier =
|
SimpleIdentifier identifier =
|
||||||
|
@ -1406,7 +1406,7 @@ class SimpleIdentifierTest extends ParserTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class SimpleStringLiteralTest extends ParserTestCase {
|
class SimpleStringLiteralTest extends ParserTestCase {
|
||||||
void test_contentsEnd() {
|
void test_contentsEnd() {
|
||||||
expect(
|
expect(
|
||||||
|
@ -1620,7 +1620,7 @@ class SimpleStringLiteralTest extends ParserTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class StringInterpolationTest extends ParserTestCase {
|
class StringInterpolationTest extends ParserTestCase {
|
||||||
void test_contentsOffsetEnd() {
|
void test_contentsOffsetEnd() {
|
||||||
AstFactory.interpolationExpression(AstFactory.identifier3('bb'));
|
AstFactory.interpolationExpression(AstFactory.identifier3('bb'));
|
||||||
|
@ -1750,7 +1750,7 @@ class StringInterpolationTest extends ParserTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ToSourceVisitorTest extends EngineTestCase {
|
class ToSourceVisitorTest extends EngineTestCase {
|
||||||
void test_visitAdjacentStrings() {
|
void test_visitAdjacentStrings() {
|
||||||
_assertSource(
|
_assertSource(
|
||||||
|
@ -4044,7 +4044,7 @@ class ToSourceVisitorTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class VariableDeclarationTest extends ParserTestCase {
|
class VariableDeclarationTest extends ParserTestCase {
|
||||||
void test_getDocumentationComment_onGrandParent() {
|
void test_getDocumentationComment_onGrandParent() {
|
||||||
VariableDeclaration varDecl = AstFactory.variableDeclaration("a");
|
VariableDeclaration varDecl = AstFactory.variableDeclaration("a");
|
||||||
|
|
|
@ -18,7 +18,7 @@ main() {
|
||||||
runReflectiveTests(CompileTimeErrorCodeTest);
|
runReflectiveTests(CompileTimeErrorCodeTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class CompileTimeErrorCodeTest extends ResolverTestCase {
|
class CompileTimeErrorCodeTest extends ResolverTestCase {
|
||||||
void fail_compileTimeConstantRaisesException() {
|
void fail_compileTimeConstantRaisesException() {
|
||||||
Source source = addSource(r'''
|
Source source = addSource(r'''
|
||||||
|
|
|
@ -39,7 +39,7 @@ main() {
|
||||||
runReflectiveTests(MultiplyDefinedElementImplTest);
|
runReflectiveTests(MultiplyDefinedElementImplTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ClassElementImplTest extends EngineTestCase {
|
class ClassElementImplTest extends EngineTestCase {
|
||||||
void test_getAllSupertypes_interface() {
|
void test_getAllSupertypes_interface() {
|
||||||
ClassElement classA = ElementFactory.classElement2("A");
|
ClassElement classA = ElementFactory.classElement2("A");
|
||||||
|
@ -894,7 +894,7 @@ class B {}''');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class CompilationUnitElementImplTest extends EngineTestCase {
|
class CompilationUnitElementImplTest extends EngineTestCase {
|
||||||
void test_getEnum_declared() {
|
void test_getEnum_declared() {
|
||||||
TestTypeProvider typeProvider = new TestTypeProvider();
|
TestTypeProvider typeProvider = new TestTypeProvider();
|
||||||
|
@ -937,7 +937,7 @@ class CompilationUnitElementImplTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ElementImplTest extends EngineTestCase {
|
class ElementImplTest extends EngineTestCase {
|
||||||
void test_equals() {
|
void test_equals() {
|
||||||
LibraryElementImpl library =
|
LibraryElementImpl library =
|
||||||
|
@ -1033,7 +1033,7 @@ class ElementImplTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ElementKindTest extends EngineTestCase {
|
class ElementKindTest extends EngineTestCase {
|
||||||
void test_of_nonNull() {
|
void test_of_nonNull() {
|
||||||
expect(
|
expect(
|
||||||
|
@ -1046,7 +1046,7 @@ class ElementKindTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ElementLocationImplTest extends EngineTestCase {
|
class ElementLocationImplTest extends EngineTestCase {
|
||||||
void test_create_encoding() {
|
void test_create_encoding() {
|
||||||
String encoding = "a;b;c";
|
String encoding = "a;b;c";
|
||||||
|
@ -1111,7 +1111,7 @@ class ElementLocationImplTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class FunctionTypeImplTest extends EngineTestCase {
|
class FunctionTypeImplTest extends EngineTestCase {
|
||||||
void test_creation() {
|
void test_creation() {
|
||||||
expect(
|
expect(
|
||||||
|
@ -1710,7 +1710,7 @@ class FunctionTypeImplTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class HtmlElementImplTest extends EngineTestCase {
|
class HtmlElementImplTest extends EngineTestCase {
|
||||||
void test_equals_differentSource() {
|
void test_equals_differentSource() {
|
||||||
AnalysisContextImpl context = createAnalysisContext();
|
AnalysisContextImpl context = createAnalysisContext();
|
||||||
|
@ -1739,7 +1739,7 @@ class HtmlElementImplTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class InterfaceTypeImplTest extends EngineTestCase {
|
class InterfaceTypeImplTest extends EngineTestCase {
|
||||||
/**
|
/**
|
||||||
* The type provider used to access the types.
|
* The type provider used to access the types.
|
||||||
|
@ -3361,7 +3361,7 @@ class InterfaceTypeImplTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class LibraryElementImplTest extends EngineTestCase {
|
class LibraryElementImplTest extends EngineTestCase {
|
||||||
void test_creation() {
|
void test_creation() {
|
||||||
expect(
|
expect(
|
||||||
|
@ -3531,7 +3531,7 @@ class LibraryElementImplTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class MultiplyDefinedElementImplTest extends EngineTestCase {
|
class MultiplyDefinedElementImplTest extends EngineTestCase {
|
||||||
void test_fromElements_conflicting() {
|
void test_fromElements_conflicting() {
|
||||||
Element firstElement = ElementFactory.localVariableElement2("xx");
|
Element firstElement = ElementFactory.localVariableElement2("xx");
|
||||||
|
@ -3584,7 +3584,7 @@ class MultiplyDefinedElementImplTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class TypeParameterTypeImplTest extends EngineTestCase {
|
class TypeParameterTypeImplTest extends EngineTestCase {
|
||||||
void test_creation() {
|
void test_creation() {
|
||||||
expect(
|
expect(
|
||||||
|
@ -3713,7 +3713,7 @@ class TypeParameterTypeImplTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class UnionTypeImplTest extends EngineTestCase {
|
class UnionTypeImplTest extends EngineTestCase {
|
||||||
ClassElement _classA;
|
ClassElement _classA;
|
||||||
|
|
||||||
|
@ -3912,7 +3912,7 @@ class UnionTypeImplTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class VoidTypeImplTest extends EngineTestCase {
|
class VoidTypeImplTest extends EngineTestCase {
|
||||||
/**
|
/**
|
||||||
* Reference {code VoidTypeImpl.getInstance()}.
|
* Reference {code VoidTypeImpl.getInstance()}.
|
||||||
|
|
|
@ -70,7 +70,7 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class AnalysisCacheTest extends EngineTestCase {
|
class AnalysisCacheTest extends EngineTestCase {
|
||||||
void test_creation() {
|
void test_creation() {
|
||||||
expect(new AnalysisCache(new List<CachePartition>(0)), isNotNull);
|
expect(new AnalysisCache(new List<CachePartition>(0)), isNotNull);
|
||||||
|
@ -153,7 +153,7 @@ class AnalysisCacheTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class AnalysisContextImplTest extends EngineTestCase {
|
class AnalysisContextImplTest extends EngineTestCase {
|
||||||
/**
|
/**
|
||||||
* An analysis context whose source factory is [sourceFactory].
|
* An analysis context whose source factory is [sourceFactory].
|
||||||
|
@ -2242,7 +2242,7 @@ class AnalysisContextImplTest_Source_getModificationStamp_overridden extends
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class AnalysisOptionsImplTest extends EngineTestCase {
|
class AnalysisOptionsImplTest extends EngineTestCase {
|
||||||
void test_AnalysisOptionsImpl_copy() {
|
void test_AnalysisOptionsImpl_copy() {
|
||||||
bool booleanValue = true;
|
bool booleanValue = true;
|
||||||
|
@ -2335,7 +2335,7 @@ class AnalysisTask_test_perform_exception extends AnalysisTask {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class AnalysisTaskTest extends EngineTestCase {
|
class AnalysisTaskTest extends EngineTestCase {
|
||||||
void test_perform_exception() {
|
void test_perform_exception() {
|
||||||
InternalAnalysisContext context = new AnalysisContextImpl();
|
InternalAnalysisContext context = new AnalysisContextImpl();
|
||||||
|
@ -2351,7 +2351,7 @@ class CompilationUnitMock extends TypedMock implements CompilationUnit {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class DartEntryTest extends EngineTestCase {
|
class DartEntryTest extends EngineTestCase {
|
||||||
void test_allErrors() {
|
void test_allErrors() {
|
||||||
Source source = new TestSource();
|
Source source = new TestSource();
|
||||||
|
@ -3796,7 +3796,7 @@ class DartEntryTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class GenerateDartErrorsTaskTest extends EngineTestCase {
|
class GenerateDartErrorsTaskTest extends EngineTestCase {
|
||||||
void test_accept() {
|
void test_accept() {
|
||||||
GenerateDartErrorsTask task =
|
GenerateDartErrorsTask task =
|
||||||
|
@ -3925,7 +3925,7 @@ class GenerateDartErrorsTaskTestTV_perform_validateDirectives extends
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class GenerateDartHintsTaskTest extends EngineTestCase {
|
class GenerateDartHintsTaskTest extends EngineTestCase {
|
||||||
void test_accept() {
|
void test_accept() {
|
||||||
GenerateDartHintsTask task = new GenerateDartHintsTask(null, null, null);
|
GenerateDartHintsTask task = new GenerateDartHintsTask(null, null, null);
|
||||||
|
@ -4006,7 +4006,7 @@ class GenerateDartHintsTaskTestTV_perform extends TestTaskVisitor<bool> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class GenerateDartLintsTaskTest extends EngineTestCase {
|
class GenerateDartLintsTaskTest extends EngineTestCase {
|
||||||
void test_accept() {
|
void test_accept() {
|
||||||
GenerateDartLintsTask task = new GenerateDartLintsTask(null, null, null);
|
GenerateDartLintsTask task = new GenerateDartLintsTask(null, null, null);
|
||||||
|
@ -4069,7 +4069,7 @@ class GenerateDartLintsTaskTestTV_perform extends TestTaskVisitor<bool> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class LintGeneratorTest extends EngineTestCase {
|
class LintGeneratorTest extends EngineTestCase {
|
||||||
void test_generate() {
|
void test_generate() {
|
||||||
|
|
||||||
|
@ -4118,7 +4118,7 @@ class LintGeneratorTest_Verifier extends LintVerifier {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class GetContentTaskTest extends EngineTestCase {
|
class GetContentTaskTest extends EngineTestCase {
|
||||||
void test_accept() {
|
void test_accept() {
|
||||||
Source source = new TestSource('/test.dart', '');
|
Source source = new TestSource('/test.dart', '');
|
||||||
|
@ -4195,7 +4195,7 @@ class GetContentTaskTestTV_perform_valid extends TestTaskVisitor<bool> {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class HtmlEntryTest extends EngineTestCase {
|
class HtmlEntryTest extends EngineTestCase {
|
||||||
void set state(DataDescriptor descriptor) {
|
void set state(DataDescriptor descriptor) {
|
||||||
HtmlEntry entry = new HtmlEntry();
|
HtmlEntry entry = new HtmlEntry();
|
||||||
|
@ -4364,7 +4364,7 @@ class HtmlEntryTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class IncrementalAnalysisCacheTest {
|
class IncrementalAnalysisCacheTest {
|
||||||
Source _source = new TestSource();
|
Source _source = new TestSource();
|
||||||
DartEntry _entry = new DartEntry();
|
DartEntry _entry = new DartEntry();
|
||||||
|
@ -4889,7 +4889,7 @@ class IncrementalAnalysisCacheTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class IncrementalAnalysisTaskTest extends EngineTestCase {
|
class IncrementalAnalysisTaskTest extends EngineTestCase {
|
||||||
void test_accept() {
|
void test_accept() {
|
||||||
IncrementalAnalysisTask task = new IncrementalAnalysisTask(null, null);
|
IncrementalAnalysisTask task = new IncrementalAnalysisTask(null, null);
|
||||||
|
@ -4966,7 +4966,7 @@ class IncrementalAnalysisTaskTestTV_assertTask extends
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ParseDartTaskTest extends EngineTestCase {
|
class ParseDartTaskTest extends EngineTestCase {
|
||||||
void test_accept() {
|
void test_accept() {
|
||||||
ParseDartTask task = new ParseDartTask(null, null, null, null);
|
ParseDartTask task = new ParseDartTask(null, null, null, null);
|
||||||
|
@ -5164,7 +5164,7 @@ class ParseDartTaskTestTV_perform_validateDirectives extends
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ParseHtmlTaskTest extends EngineTestCase {
|
class ParseHtmlTaskTest extends EngineTestCase {
|
||||||
ParseHtmlTask parseContents(String contents, TestLogger testLogger) {
|
ParseHtmlTask parseContents(String contents, TestLogger testLogger) {
|
||||||
return parseSource(
|
return parseSource(
|
||||||
|
@ -5348,7 +5348,7 @@ class ParseHtmlTaskTestTV_parseSource extends TestTaskVisitor<bool> {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class PartitionManagerTest extends EngineTestCase {
|
class PartitionManagerTest extends EngineTestCase {
|
||||||
void test_clearCache() {
|
void test_clearCache() {
|
||||||
PartitionManager manager = new PartitionManager();
|
PartitionManager manager = new PartitionManager();
|
||||||
|
@ -5378,7 +5378,7 @@ class PartitionManagerTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ResolveDartLibraryTaskTest extends EngineTestCase {
|
class ResolveDartLibraryTaskTest extends EngineTestCase {
|
||||||
void test_accept() {
|
void test_accept() {
|
||||||
ResolveDartLibraryTask task = new ResolveDartLibraryTask(null, null, null);
|
ResolveDartLibraryTask task = new ResolveDartLibraryTask(null, null, null);
|
||||||
|
@ -5459,7 +5459,7 @@ class ResolveDartLibraryTaskTestTV_perform_library extends TestTaskVisitor<bool>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ResolveDartUnitTaskTest extends EngineTestCase {
|
class ResolveDartUnitTaskTest extends EngineTestCase {
|
||||||
void test_accept() {
|
void test_accept() {
|
||||||
ResolveDartUnitTask task = new ResolveDartUnitTask(null, null, null);
|
ResolveDartUnitTask task = new ResolveDartUnitTask(null, null, null);
|
||||||
|
@ -5560,7 +5560,7 @@ class ResolveDartUnitTaskTestTV_perform_library extends TestTaskVisitor<bool> {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ResolveHtmlTaskTest extends EngineTestCase {
|
class ResolveHtmlTaskTest extends EngineTestCase {
|
||||||
void test_accept() {
|
void test_accept() {
|
||||||
ResolveHtmlTask task = new ResolveHtmlTask(null, null, 0, null);
|
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 {
|
class ScanDartTaskTest extends EngineTestCase {
|
||||||
void test_accept() {
|
void test_accept() {
|
||||||
ScanDartTask task = new ScanDartTask(null, null, null);
|
ScanDartTask task = new ScanDartTask(null, null, null);
|
||||||
|
@ -5723,7 +5723,7 @@ class ScanDartTaskTestTV_perform_valid extends TestTaskVisitor<bool> {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class SdkCachePartitionTest extends EngineTestCase {
|
class SdkCachePartitionTest extends EngineTestCase {
|
||||||
void test_contains_false() {
|
void test_contains_false() {
|
||||||
SdkCachePartition partition = new SdkCachePartition(null, 8);
|
SdkCachePartition partition = new SdkCachePartition(null, 8);
|
||||||
|
@ -5745,7 +5745,7 @@ class SdkCachePartitionTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class SourcesChangedEventTest {
|
class SourcesChangedEventTest {
|
||||||
|
|
||||||
void test_added() {
|
void test_added() {
|
||||||
|
@ -6859,7 +6859,7 @@ class TestTaskVisitor<E> implements AnalysisTaskVisitor<E> {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class UniversalCachePartitionTest extends EngineTestCase {
|
class UniversalCachePartitionTest extends EngineTestCase {
|
||||||
void test_contains() {
|
void test_contains() {
|
||||||
UniversalCachePartition partition =
|
UniversalCachePartition partition =
|
||||||
|
@ -6949,7 +6949,7 @@ class UniversalCachePartitionTest extends EngineTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class WorkManagerTest extends EngineTestCase {
|
class WorkManagerTest extends EngineTestCase {
|
||||||
void test_addFirst() {
|
void test_addFirst() {
|
||||||
TestSource source1 = new TestSource("/f1.dart");
|
TestSource source1 = new TestSource("/f1.dart");
|
||||||
|
|
|
@ -63,7 +63,7 @@ void _assertEqualErrors(List<AnalysisError> incrErrors,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class DeclarationMatcherTest extends ResolverTestCase {
|
class DeclarationMatcherTest extends ResolverTestCase {
|
||||||
void setUp() {
|
void setUp() {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
|
@ -2032,7 +2032,7 @@ class B extends Object with A {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class IncrementalResolverTest extends ResolverTestCase {
|
class IncrementalResolverTest extends ResolverTestCase {
|
||||||
Source source;
|
Source source;
|
||||||
String code;
|
String code;
|
||||||
|
@ -2475,7 +2475,7 @@ class B {
|
||||||
* The test for [poorMansIncrementalResolution] function and its integration
|
* The test for [poorMansIncrementalResolution] function and its integration
|
||||||
* into [AnalysisContext].
|
* into [AnalysisContext].
|
||||||
*/
|
*/
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class PoorMansIncrementalResolutionTest extends ResolverTestCase {
|
class PoorMansIncrementalResolutionTest extends ResolverTestCase {
|
||||||
Source source;
|
Source source;
|
||||||
String code;
|
String code;
|
||||||
|
@ -3283,7 +3283,7 @@ f3() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ResolutionContextBuilderTest extends EngineTestCase {
|
class ResolutionContextBuilderTest extends EngineTestCase {
|
||||||
GatheringErrorListener listener = new GatheringErrorListener();
|
GatheringErrorListener listener = new GatheringErrorListener();
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ main() {
|
||||||
runReflectiveTests(IncrementalScannerTest);
|
runReflectiveTests(IncrementalScannerTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class IncrementalScannerTest extends EngineTestCase {
|
class IncrementalScannerTest extends EngineTestCase {
|
||||||
/**
|
/**
|
||||||
* The first token from the token stream resulting from parsing the original
|
* The first token from the token stream resulting from parsing the original
|
||||||
|
|
|
@ -21,7 +21,7 @@ main() {
|
||||||
runReflectiveTests(NonErrorResolverTest);
|
runReflectiveTests(NonErrorResolverTest);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class NonErrorResolverTest extends ResolverTestCase {
|
class NonErrorResolverTest extends ResolverTestCase {
|
||||||
void fail_undefinedEnumConstant() {
|
void fail_undefinedEnumConstant() {
|
||||||
Source source = addSource(r'''
|
Source source = addSource(r'''
|
||||||
|
|
|
@ -123,7 +123,7 @@ class AstValidator extends UnifyingAstVisitor<Object> {
|
||||||
*
|
*
|
||||||
* Simpler tests should be defined in the class [SimpleParserTest].
|
* Simpler tests should be defined in the class [SimpleParserTest].
|
||||||
*/
|
*/
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ComplexParserTest extends ParserTestCase {
|
class ComplexParserTest extends ParserTestCase {
|
||||||
void test_additiveExpression_normal() {
|
void test_additiveExpression_normal() {
|
||||||
BinaryExpression expression = ParserTestCase.parseExpression("x + y - z");
|
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
|
* 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.
|
* that errors are correctly reported, and in some cases, not reported.
|
||||||
*/
|
*/
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ErrorParserTest extends ParserTestCase {
|
class ErrorParserTest extends ParserTestCase {
|
||||||
void fail_expectedListOrMapLiteral() {
|
void fail_expectedListOrMapLiteral() {
|
||||||
// It isn't clear that this test can ever pass. The parser is currently
|
// 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 {
|
class IncrementalParserTest extends EngineTestCase {
|
||||||
void fail_replace_identifier_with_functionLiteral_in_initializer_interp() {
|
void fail_replace_identifier_with_functionLiteral_in_initializer_interp() {
|
||||||
// TODO(paulberry, brianwilkerson): broken due to incremental scanning bugs
|
// TODO(paulberry, brianwilkerson): broken due to incremental scanning bugs
|
||||||
|
@ -2969,7 +2969,7 @@ class C {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class NonErrorParserTest extends ParserTestCase {
|
class NonErrorParserTest extends ParserTestCase {
|
||||||
void test_constFactory_external() {
|
void test_constFactory_external() {
|
||||||
ParserTestCase.parse(
|
ParserTestCase.parse(
|
||||||
|
@ -3267,7 +3267,7 @@ class ParserTestCase extends EngineTestCase {
|
||||||
* The class `RecoveryParserTest` defines parser tests that test the parsing of invalid code
|
* 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.
|
* sequences to ensure that the correct recovery steps are taken in the parser.
|
||||||
*/
|
*/
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class RecoveryParserTest extends ParserTestCase {
|
class RecoveryParserTest extends ParserTestCase {
|
||||||
void fail_incomplete_returnType() {
|
void fail_incomplete_returnType() {
|
||||||
ParserTestCase.parseCompilationUnit(r'''
|
ParserTestCase.parseCompilationUnit(r'''
|
||||||
|
@ -4513,7 +4513,7 @@ class C {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class ResolutionCopierTest extends EngineTestCase {
|
class ResolutionCopierTest extends EngineTestCase {
|
||||||
void test_visitAnnotation() {
|
void test_visitAnnotation() {
|
||||||
String annotationName = "proxy";
|
String annotationName = "proxy";
|
||||||
|
@ -5163,7 +5163,7 @@ class ResolutionCopierTest extends EngineTestCase {
|
||||||
*
|
*
|
||||||
* More complex tests should be defined in the class [ComplexParserTest].
|
* More complex tests should be defined in the class [ComplexParserTest].
|
||||||
*/
|
*/
|
||||||
@ReflectiveTestCase()
|
@reflectiveTest
|
||||||
class SimpleParserTest extends ParserTestCase {
|
class SimpleParserTest extends ParserTestCase {
|
||||||
void fail_parseCommentReference_this() {
|
void fail_parseCommentReference_this() {
|
||||||
// This fails because we are returning null from the method and asserting
|
// 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
Loading…
Reference in a new issue