be29db2621
This updates the parser suites to use the FolderOptions already used by other expectation tests. This aligns the support for configuration tests in particular wrt experimental flags. As a consequence of this change, all parser suite enable patterns for parser. Since the test setup didn't use experimental flags previously, newly added tests didn't use the current default, which is with pattern support. Since we don't have any tests explicitly for non-pattern support, all tests are updated to support patterns as it at least aligns with the default for current and future code. Change-Id: I80ee769b35e74a0d111135ca4690983872a63623 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/459741 Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
29 lines
774 B
Dart
29 lines
774 B
Dart
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
import 'package:testing/testing.dart' show Chain, ChainContext;
|
|
|
|
import 'utils/suite_utils.dart';
|
|
import 'parser_suite.dart';
|
|
|
|
void main([List<String> arguments = const []]) => internalMain(
|
|
createContext,
|
|
arguments: arguments,
|
|
displayName: "parser all suite",
|
|
configurationPath: "../testing.json",
|
|
);
|
|
|
|
Future<ChainContext> createContext(
|
|
Chain suite,
|
|
Map<String, String> environment,
|
|
) {
|
|
return new Future.value(
|
|
new ContextChecksOnly(
|
|
baseUri: suite.root,
|
|
suiteName: suite.name,
|
|
environment: environment,
|
|
),
|
|
);
|
|
}
|