mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
[CFE] Cleanup incremental_load_from_dill_test yamls
Change-Id: I30012b08499e5c5a7babb74cb43706031fb3f4cd Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/118445 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Jens Johansen <jensj@google.com>
This commit is contained in:
parent
fdda2729c3
commit
1b03bc34c8
17 changed files with 6 additions and 16 deletions
|
@ -116,8 +116,11 @@ class RunCompilations extends Step<TestData, TestData, Context> {
|
|||
|
||||
Future<Result<TestData>> run(TestData data, Context context) async {
|
||||
YamlMap map = data.map;
|
||||
Set<String> keys = new Set<String>.from(map.keys.cast<String>());
|
||||
keys.remove("type");
|
||||
switch (map["type"]) {
|
||||
case "basic":
|
||||
keys.removeAll(["sources", "entry", "invalidate"]);
|
||||
await basicTest(
|
||||
map["sources"],
|
||||
map["entry"],
|
||||
|
@ -126,6 +129,7 @@ class RunCompilations extends Step<TestData, TestData, Context> {
|
|||
);
|
||||
break;
|
||||
case "newworld":
|
||||
keys.removeAll(["worlds", "modules", "omitPlatform", "target"]);
|
||||
await newWorldTest(
|
||||
map["worlds"],
|
||||
map["modules"],
|
||||
|
@ -136,6 +140,8 @@ class RunCompilations extends Step<TestData, TestData, Context> {
|
|||
default:
|
||||
throw "Unexpected type: ${map['type']}";
|
||||
}
|
||||
|
||||
if (keys.isNotEmpty) throw "Unknown toplevel keys: $keys";
|
||||
return pass(data);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
# the same.
|
||||
|
||||
type: newworld
|
||||
strong: true
|
||||
modules:
|
||||
module:
|
||||
module/a.dart: |
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
# the same.
|
||||
|
||||
type: newworld
|
||||
strong: true
|
||||
modules:
|
||||
module:
|
||||
module/a.dart: |
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
# which - if loaded - pulls in more of itself.
|
||||
|
||||
type: newworld
|
||||
strong: true
|
||||
modules:
|
||||
module:
|
||||
module/a.dart: |
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
# dill libraries.
|
||||
|
||||
type: newworld
|
||||
strong: true
|
||||
modules:
|
||||
moduleB:
|
||||
moduleB/b.dart: |
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
# dill libraries.
|
||||
|
||||
type: newworld
|
||||
strong: true
|
||||
modules:
|
||||
moduleB:
|
||||
moduleB/b.dart: |
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
# dill libraries.
|
||||
|
||||
type: newworld
|
||||
strong: true
|
||||
modules:
|
||||
moduleB:
|
||||
moduleB/b.dart: |
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
# dill libraries.
|
||||
|
||||
type: newworld
|
||||
strong: true
|
||||
modules:
|
||||
module:
|
||||
module/lib1.dart: |
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
# dill libraries.
|
||||
|
||||
type: newworld
|
||||
strong: true
|
||||
modules:
|
||||
module:
|
||||
module/lib1.dart: |
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
# the same.
|
||||
|
||||
type: newworld
|
||||
strong: true
|
||||
modules:
|
||||
moduleA:
|
||||
moduleA/a.dart: |
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
# This have crashed at one point (assertion error).
|
||||
|
||||
type: newworld
|
||||
strong: true
|
||||
worlds:
|
||||
- entry: main.dart
|
||||
sources:
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
# Fix both and the error should go away.
|
||||
|
||||
type: newworld
|
||||
strong: true
|
||||
worlds:
|
||||
- entry: main.dart
|
||||
sources:
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
# Fixing that should fix everything.
|
||||
|
||||
type: newworld
|
||||
strong: true
|
||||
worlds:
|
||||
- entry: main.dart
|
||||
sources:
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
# we keep getting errors. Once we fix it, we no longer get errors.
|
||||
|
||||
type: newworld
|
||||
strong: true
|
||||
worlds:
|
||||
- entry: main.dart
|
||||
sources:
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
# we keep getting errors. Once we fix it, we no longer get errors.
|
||||
|
||||
type: newworld
|
||||
strong: true
|
||||
worlds:
|
||||
- entry: main.dart
|
||||
sources:
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
# Remove said file again and the error should go away.
|
||||
|
||||
type: newworld
|
||||
strong: true
|
||||
worlds:
|
||||
- entry: main.dart
|
||||
sources:
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
# Any references to the constant shouldn't matter in this regard.
|
||||
|
||||
type: newworld
|
||||
strong: true
|
||||
worlds:
|
||||
- entry: main.dart
|
||||
sources:
|
||||
|
|
Loading…
Reference in a new issue