| 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 ed27b010f6260683223ff3207210951e06ac84a5..75fbf2274458963df223b8c7de1cd32275c38edd 100644
|
| --- a/pkg/analysis_server/test/context_directory_manager_test.dart
|
| +++ b/pkg/analysis_server/test/context_directory_manager_test.dart
|
| @@ -133,6 +133,16 @@ main() {
|
| expect(filePaths, contains(filePath));
|
| });
|
|
|
| + test('add folder with dummy link', () {
|
| + String projPath = '/my/proj';
|
| + resourceProvider.newFolder(projPath);
|
| + String filePath = posix.join(projPath, 'foo.dart');
|
| + resourceProvider.newDummyLink(filePath);
|
| + manager.setRoots(<String>[projPath], <String>[]);
|
| + var filePaths = manager.currentContextFilePaths[projPath];
|
| + expect(filePaths, isEmpty);
|
| + });
|
| +
|
| test('add folder with dart file in subdir', () {
|
| String projPath = '/my/proj';
|
| resourceProvider.newFolder(projPath);
|
| @@ -190,6 +200,17 @@ main() {
|
| resourceProvider.newFolder(projPath);
|
| });
|
|
|
| + test('Add dummy link', () {
|
| + manager.setRoots(<String>[projPath], <String>[]);
|
| + Map<String, int> filePaths = manager.currentContextFilePaths[projPath];
|
| + expect(filePaths, isEmpty);
|
| + String filePath = posix.join(projPath, 'foo.dart');
|
| + resourceProvider.newDummyLink(filePath);
|
| + return pumpEventQueue().then((_) {
|
| + expect(filePaths, isEmpty);
|
| + });
|
| + });
|
| +
|
| test('Add file', () {
|
| manager.setRoots(<String>[projPath], <String>[]);
|
| Map<String, int> filePaths = manager.currentContextFilePaths[projPath];
|
|
|