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:
Konstantin Shcheglov 2021-09-14 16:41:41 +00:00 committed by commit-bot@chromium.org
parent c68d2c3919
commit 9dd6854112
12 changed files with 18 additions and 23 deletions

View file

@ -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> {

View file

@ -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> {

View file

@ -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> {

View file

@ -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> {

View file

@ -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>> {

View file

@ -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> {

View file

@ -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.

View file

@ -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 {

View file

@ -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 {

View file

@ -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> {

View file

@ -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?> {

View file

@ -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