mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
Create a package_config.json file for the SDK tests.
This (assuming it works right) tells Dart implementations to treat all of the libraries in the legacy test directories as opting out of NNBD. Change-Id: I36e5cd966921f759306f5b4bb50f18ae6049d4db Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134409 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com> Reviewed-by: Paul Berry <paulberry@google.com> Commit-Queue: Bob Nystrom <rnystrom@google.com> Auto-Submit: Bob Nystrom <rnystrom@google.com>
This commit is contained in:
parent
efefe78522
commit
cb6b535108
167
tests/.dart_tool/package_config.json
Normal file
167
tests/.dart_tool/package_config.json
Normal file
|
@ -0,0 +1,167 @@
|
|||
{
|
||||
"version": 2,
|
||||
"comment": [
|
||||
"This file tells each Dart implementation to treat the test subdirectories",
|
||||
"as 'packages' so that we can set the default language version for each",
|
||||
"directory. That in turn lets us treat the legacy tests as opted out of",
|
||||
"NNBD without having to put a version comment in every single file."
|
||||
],
|
||||
"packages": [
|
||||
{
|
||||
"name": "co19_2",
|
||||
"rootUri": "../co19_2/",
|
||||
"languageVersion": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "corelib_2",
|
||||
"rootUri": "../corelib_2/",
|
||||
"languageVersion": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "ffi_2",
|
||||
"rootUri": "../ffi_2/",
|
||||
"languageVersion": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "language_2",
|
||||
"rootUri": "../language_2/",
|
||||
"languageVersion": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "lib_2",
|
||||
"rootUri": "../lib_2/",
|
||||
"languageVersion": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "standalone_2",
|
||||
"rootUri": "../standalone_2/",
|
||||
"languageVersion": "2.6"
|
||||
},
|
||||
|
||||
{
|
||||
"name": "_fe_analyzer_shared",
|
||||
"rootUri": "../../pkg/_fe_analyzer_shared/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "args",
|
||||
"rootUri": "../../third_party/pkg/args/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "async_helper",
|
||||
"rootUri": "../../pkg/async_helper/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "collection",
|
||||
"rootUri": "../../third_party/pkg/collection/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "compiler",
|
||||
"rootUri": "../../pkg/compiler/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "convert",
|
||||
"rootUri": "../../third_party/pkg/convert/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "crypto",
|
||||
"rootUri": "../../third_party/pkg/crypto/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "dart2js_info",
|
||||
"rootUri": "../../third_party/pkg/dart2js_info/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "dart2js_tools",
|
||||
"rootUri": "../../pkg/dart2js_tools/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "dart_internal",
|
||||
"rootUri": "../../pkg/dart_internal/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "expect",
|
||||
"rootUri": "../../pkg/expect/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "ffi",
|
||||
"rootUri": "../../third_party/pkg/ffi/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "front_end",
|
||||
"rootUri": "../../pkg/front_end/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "http",
|
||||
"rootUri": "../../third_party/pkg/http/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "js",
|
||||
"rootUri": "../../pkg/js/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "js_ast",
|
||||
"rootUri": "../../pkg/js_ast/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "kernel",
|
||||
"rootUri": "../../pkg/kernel/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "meta",
|
||||
"rootUri": "../../pkg/meta/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "native_stack_traces",
|
||||
"rootUri": "../../pkg/native_stack_traces/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "path",
|
||||
"rootUri": "../../third_party/pkg/path/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "source_maps",
|
||||
"rootUri": "../../third_party/pkg/source_maps/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "sourcemap_testing",
|
||||
"rootUri": "../../pkg/sourcemap_testing/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "test",
|
||||
"rootUri": "../../third_party/pkg/test/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "testing",
|
||||
"rootUri": "../../pkg/testing/lib",
|
||||
"language": "2.6"
|
||||
},
|
||||
{
|
||||
"name": "unittest",
|
||||
"rootUri": "../../pkg/unittest/lib",
|
||||
"language": "2.6"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue