blob: 57c1a4c4efab53bf15e36a40cffe720c9d3d12de [file] [log] [blame]
# 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 no packages and two libraries and a part.
# Update the world to remove usage of the part. The now no longer referenced
# part should also have been removed from the uri to sources.
type: newworld
worlds:
- entry: main.dart
sources:
main.dart: |
// @dart=2.9
import "b.dart";
main() { b(); }
b.dart: |
// @dart=2.9
part 'c.dart';
b() {
c();
}
c.dart: |
// @dart=2.9
part of 'b.dart';
c() {}
expectedLibraryCount: 2
- entry: main.dart
worldType: updated
invalidate:
- b.dart
expectInitializeFromDill: false
sources:
b.dart: |
// @dart=2.9
b() {}
expectedLibraryCount: 2
uriToSourcesDoesntInclude:
- c.dart