mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 09:43:57 +00:00
Rename id tests configs, all features are enabled by default.
Change-Id: Iea3739c2be173847a49d8838f399ebfd751b9713 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213300 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
parent
c68d2c3919
commit
9dd6854112
|
@ -24,7 +24,7 @@ main(List<String> args) async {
|
|||
createUriForFileName: createUriForFileName,
|
||||
onFailure: onFailure,
|
||||
runTest: runTestFor(
|
||||
const _AssignedVariablesDataComputer(), [analyzerNnbdConfig]));
|
||||
const _AssignedVariablesDataComputer(), [analyzerDefaultConfig]));
|
||||
}
|
||||
|
||||
class _AssignedVariablesDataComputer extends DataComputer<_Data> {
|
||||
|
|
|
@ -24,8 +24,8 @@ main(List<String> args) async {
|
|||
args: args,
|
||||
createUriForFileName: createUriForFileName,
|
||||
onFailure: onFailure,
|
||||
runTest: runTestFor(
|
||||
const ConstantsDataComputer(), [analyzerConstantUpdate2018Config]));
|
||||
runTest:
|
||||
runTestFor(const ConstantsDataComputer(), [analyzerDefaultConfig]));
|
||||
}
|
||||
|
||||
class ConstantsDataComputer extends DataComputer<String> {
|
||||
|
|
|
@ -25,7 +25,7 @@ main(List<String> args) async {
|
|||
createUriForFileName: createUriForFileName,
|
||||
onFailure: onFailure,
|
||||
runTest: runTestFor(
|
||||
const _DefiniteAssignmentDataComputer(), [analyzerNnbdConfig]));
|
||||
const _DefiniteAssignmentDataComputer(), [analyzerDefaultConfig]));
|
||||
}
|
||||
|
||||
class _DefiniteAssignmentDataComputer extends DataComputer<String> {
|
||||
|
|
|
@ -25,7 +25,7 @@ main(List<String> args) async {
|
|||
createUriForFileName: createUriForFileName,
|
||||
onFailure: onFailure,
|
||||
runTest: runTestFor(
|
||||
const _DefiniteAssignmentDataComputer(), [analyzerNnbdConfig]));
|
||||
const _DefiniteAssignmentDataComputer(), [analyzerDefaultConfig]));
|
||||
}
|
||||
|
||||
class _DefiniteAssignmentDataComputer extends DataComputer<String> {
|
||||
|
|
|
@ -22,7 +22,7 @@ main(List<String> args) async {
|
|||
createUriForFileName: createUriForFileName,
|
||||
onFailure: onFailure,
|
||||
runTest: runTestFor(
|
||||
const _InferredTypeArgumentsDataComputer(), [analyzerNnbdConfig]));
|
||||
const _InferredTypeArgumentsDataComputer(), [analyzerDefaultConfig]));
|
||||
}
|
||||
|
||||
class _InferredTypeArgumentsDataComputer extends DataComputer<List<DartType>> {
|
||||
|
|
|
@ -22,7 +22,7 @@ main(List<String> args) async {
|
|||
createUriForFileName: createUriForFileName,
|
||||
onFailure: onFailure,
|
||||
runTest: runTestFor(
|
||||
const _InferredVariableTypesDataComputer(), [analyzerNnbdConfig]));
|
||||
const _InferredVariableTypesDataComputer(), [analyzerDefaultConfig]));
|
||||
}
|
||||
|
||||
class _InferredVariableTypesDataComputer extends DataComputer<DartType> {
|
||||
|
|
|
@ -24,7 +24,7 @@ main(List<String> args) async {
|
|||
createUriForFileName: createUriForFileName,
|
||||
onFailure: onFailure,
|
||||
runTest:
|
||||
runTestFor(const _InheritanceDataComputer(), [analyzerNnbdConfig]),
|
||||
runTestFor(const _InheritanceDataComputer(), [analyzerDefaultConfig]),
|
||||
skipMap: {
|
||||
analyzerMarker: [
|
||||
// These are CFE-centric tests for an opt-in/opt-out sdk.
|
||||
|
|
|
@ -26,8 +26,8 @@ main(List<String> args) async {
|
|||
args: args,
|
||||
createUriForFileName: createUriForFileName,
|
||||
onFailure: onFailure,
|
||||
runTest:
|
||||
runTestFor(const _NullabilityDataComputer(), [analyzerNnbdConfig]));
|
||||
runTest: runTestFor(
|
||||
const _NullabilityDataComputer(), [analyzerDefaultConfig]));
|
||||
}
|
||||
|
||||
class FlowTestBase {
|
||||
|
|
|
@ -22,8 +22,8 @@ main(List<String> args) async {
|
|||
args: args,
|
||||
createUriForFileName: createUriForFileName,
|
||||
onFailure: onFailure,
|
||||
runTest:
|
||||
runTestFor(const _ReachabilityDataComputer(), [analyzerNnbdConfig]));
|
||||
runTest: runTestFor(
|
||||
const _ReachabilityDataComputer(), [analyzerDefaultConfig]));
|
||||
}
|
||||
|
||||
class FlowTestBase {
|
||||
|
|
|
@ -22,8 +22,8 @@ main(List<String> args) async {
|
|||
args: args,
|
||||
createUriForFileName: createUriForFileName,
|
||||
onFailure: onFailure,
|
||||
runTest:
|
||||
runTestFor(const _TypePromotionDataComputer(), [analyzerNnbdConfig]));
|
||||
runTest: runTestFor(
|
||||
const _TypePromotionDataComputer(), [analyzerDefaultConfig]));
|
||||
}
|
||||
|
||||
class _TypePromotionDataComputer extends DataComputer<DartType> {
|
||||
|
|
|
@ -22,7 +22,7 @@ main(List<String> args) async {
|
|||
createUriForFileName: createUriForFileName,
|
||||
onFailure: onFailure,
|
||||
runTest: runTestFor(
|
||||
const _WhyNotPromotedDataComputer(), [analyzerNnbdConfig]));
|
||||
const _WhyNotPromotedDataComputer(), [analyzerDefaultConfig]));
|
||||
}
|
||||
|
||||
class _WhyNotPromotedDataComputer extends DataComputer<String?> {
|
||||
|
|
|
@ -26,14 +26,9 @@ import 'package:analyzer/src/generated/source.dart';
|
|||
import 'package:analyzer/src/source/package_map_resolver.dart';
|
||||
import 'package:analyzer/src/test_utilities/mock_sdk.dart';
|
||||
|
||||
/// Test configuration used for testing the analyzer with constant evaluation.
|
||||
final TestConfig analyzerConstantUpdate2018Config = TestConfig(
|
||||
analyzerMarker, 'analyzer with constant-update-2018',
|
||||
featureSet: FeatureSet.latestLanguageVersion());
|
||||
|
||||
/// Test configuration used for testing the analyzer with NNBD.
|
||||
final TestConfig analyzerNnbdConfig = TestConfig(
|
||||
analyzerMarker, 'analyzer with NNBD',
|
||||
/// Test configuration used for testing the analyzer without experiments.
|
||||
final TestConfig analyzerDefaultConfig = TestConfig(
|
||||
analyzerMarker, 'analyzer without experiments',
|
||||
featureSet: FeatureSet.latestLanguageVersion());
|
||||
|
||||
/// A fake absolute directory used as the root of a memory-file system in ID
|
||||
|
|
Loading…
Reference in a new issue