Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(497)

Unified Diff: pkg/analysis_server/test/context_manager_test.dart

Issue 1411393003: Issue 24612. Skip excluded folder during contexts creation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/lib/src/context_manager.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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');
« no previous file with comments | « pkg/analysis_server/lib/src/context_manager.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698