blob: 5b6bcc4f470fc0f5df0624d2f8f541679e80abe1 [file] [log] [blame]
# Copyright (c) 2022, 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.
# Importing a package also via file uri gives two libraries with the same
# file uri --- that shouldn't crash experimental invalidation though.
type: newworld
worlds:
- entry: package:foo/main.dart
checkEntries: false
sources:
.dart_tool/package_config.json: |
{
"configVersion": 2,
"packages": [
{
"name": "foo",
"rootUri": "../foo",
"languageVersion": "2.12"
}
]
}
foo/main.dart: |
import "package:foo/lib.dart";
foo/lib.dart: |
import "org-dartlang-test:///foo/main.dart";
expectedLibraryCount: 3 # main twice --- one for the package and one for the file uri.
- entry: package:foo/main.dart
checkEntries: false
worldType: updated
expectInitializeFromDill: false
invalidate:
- foo/main.dart
expectedLibraryCount: 3
advancedInvalidation: bodiesOnly
checkInvalidatedFiles: false