Files
sdk/pkg/front_end/testcases/incremental/changing_modules_9.yaml
T
Johnni Winther 357e83e44d [cfe] Rename incremental_load/initialize_from_dill(_suite) to incremental(_suite)
Change-Id: I747151249330ed3c9c1026289be52d5ca0dca891
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/185600
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-02-19 08:41:07 +00:00

70 lines
1.7 KiB
YAML

# Copyright (c) 2019, 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.md file.
# Compile an application with a number of modules.
# Recompile the same thing again and make sure the calculated dependencies are
# the same.
type: newworld
modules:
moduleA:
moduleA/a.dart: |
export 'package:moduleB/b.dart';
class A { }
moduleA/.packages: |
moduleA:.
moduleB:../moduleB
moduleB:
moduleB/b.dart: |
class B {
int foo = 42;
}
moduleB/.packages: |
moduleB:.
worlds:
- entry: main.dart
fromComponent: true
sources:
main.dart: |
import "package:moduleA/a.dart";
main() {
A a = new A();
}
.packages: |
moduleA:moduleA
moduleB:moduleB
modules:
- moduleA
- moduleB
expectedLibraryCount: 3
neededDillLibraries:
- package:moduleA/a.dart
- package:moduleB/b.dart
expectedContent:
org-dartlang-test:///main.dart:
- Procedure main
package:moduleA/a.dart:
- Class A
package:moduleB/b.dart:
- Class B
- entry: main.dart
worldType: updated
expectInitializeFromDill: false
# Nothing actually updated, as such everything is expected as before.
modules:
- moduleA
- moduleB
expectedLibraryCount: 3
neededDillLibraries:
- package:moduleA/a.dart
- package:moduleB/b.dart
expectedContent:
org-dartlang-test:///main.dart:
- Procedure main
package:moduleA/a.dart:
- Class A
package:moduleB/b.dart:
- Class B