Index: pkg/analysis_server/test/context_manager_test.dart |
diff --git a/pkg/analysis_server/test/context_manager_test.dart b/pkg/analysis_server/test/context_manager_test.dart |
index ba768ce84c44c95a2c0445ae32040ea349800d1b..75997ca6ea6bd0dd5f62e76b70ae09c06eee8009 100644 |
--- a/pkg/analysis_server/test/context_manager_test.dart |
+++ b/pkg/analysis_server/test/context_manager_test.dart |
@@ -937,6 +937,19 @@ test_pack:lib/ |
_checkPackageMap(projPath, equals(packageMapProvider.packageMap)); |
} |
+ void test_setRoots_noContext_excludedFolder() { |
+ // prepare paths |
+ String project = '/project'; |
+ String excludedFolder = '$project/excluded'; |
+ String excludedPubspec = '$excludedFolder/pubspec.yaml'; |
+ // create files |
+ resourceProvider.newFile(excludedPubspec, 'name: ignore-me'); |
+ // set "/project", and exclude "/project/excluded" |
+ manager.setRoots( |
+ <String>[project], <String>[excludedFolder], <String, String>{}); |
+ callbacks.assertContextPaths([project]); |
+ } |
+ |
void test_setRoots_noContext_inDotFolder() { |
String pubspecPath = posix.join(projPath, '.pub', 'pubspec.yaml'); |
resourceProvider.newFile(pubspecPath, 'name: test'); |