blob: e7811bd9e394c8152dacc6eb1a121735fb1ee5fe [file] [log] [blame]
# Copyright (c) 2018, 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.
# Test that invalidating a part of a package works with both file and package
# URI.
type: newworld
strong: false
worlds:
- entry: "package:dummy/main.dart"
sources:
main.dart: |
part "b.dart";
main() {
print("hello");
b();
}
b.dart: |
part of "main.dart";
b() {
print("b1");
}
.packages: dummy:${outDirUri}
expectedLibraryCount: 1
- entry: "package:dummy/main.dart"
invalidate:
- b.dart
expectedInvalidatedUri:
- "package:dummy/b.dart"
sources:
main.dart: |
part "b.dart";
main() {
print("hello");
b();
}
b.dart: |
part of "main.dart";
b() {
print("b2");
}
.packages: dummy:${outDirUri}
expectedLibraryCount: 1
- entry: "package:dummy/main.dart"
invalidate:
- "package:dummy/b.dart"
expectedInvalidatedUri:
- "package:dummy/b.dart"
sources:
main.dart: |
part "b.dart";
main() {
print("hello");
b();
}
b.dart: |
part of "main.dart";
b() {
print("b3");
}
.packages: dummy:${outDirUri}
expectedLibraryCount: 1