| Index: pkg/analysis_server/test/context_directory_manager_test.dart
|
| diff --git a/pkg/analysis_server/test/context_directory_manager_test.dart b/pkg/analysis_server/test/context_directory_manager_test.dart
|
| index 0bebce08a6586ddfba987b4922b0a4744c26639e..7f27224a4a2c601b6d57287d8060ba181c07962b 100644
|
| --- a/pkg/analysis_server/test/context_directory_manager_test.dart
|
| +++ b/pkg/analysis_server/test/context_directory_manager_test.dart
|
| @@ -106,6 +106,28 @@ main() {
|
| expect(filePaths, contains(filePath));
|
| });
|
|
|
| + test('remove folder with pubspec', () {
|
| + String projPath = '/my/proj';
|
| + String pubspecPath = posix.join(projPath, 'pubspec.yaml');
|
| + provider.newFolder(projPath);
|
| + provider.newFile(pubspecPath, 'pubspec');
|
| + manager.setRoots(<String>[projPath], <String>[]);
|
| + manager.setRoots(<String>[], <String>[]);
|
| + expect(manager.currentContextPaths, hasLength(0));
|
| + expect(manager.currentContextPubspecPaths, hasLength(0));
|
| + expect(manager.currentContextFilePaths, hasLength(0));
|
| + });
|
| +
|
| + test('remove folder without pubspec', () {
|
| + String projPath = '/my/proj';
|
| + provider.newFolder(projPath);
|
| + manager.setRoots(<String>[projPath], <String>[]);
|
| + manager.setRoots(<String>[], <String>[]);
|
| + expect(manager.currentContextPaths, hasLength(0));
|
| + expect(manager.currentContextPubspecPaths, hasLength(0));
|
| + expect(manager.currentContextFilePaths, hasLength(0));
|
| + });
|
| +
|
| test('ignore files in packages dir', () {
|
| String projPath = '/my/proj';
|
| provider.newFolder(projPath);
|
|
|