| Index: pkg/analysis_server/test/single_context_manager_test.dart
|
| diff --git a/pkg/analysis_server/test/single_context_manager_test.dart b/pkg/analysis_server/test/single_context_manager_test.dart
|
| index 68a43763aedff597c354dca78fdda123a438c6ff..8c68e77c927ca2f3835cbb06f39f312110e0bd13 100644
|
| --- a/pkg/analysis_server/test/single_context_manager_test.dart
|
| +++ b/pkg/analysis_server/test/single_context_manager_test.dart
|
| @@ -247,6 +247,18 @@ class SingleContextManagerTest {
|
| callbacks.assertContextFiles(project, [fileA, fileB]);
|
| }
|
|
|
| + void test_setRoots_ignoreGlobs() {
|
| + String file1 = '$projPath/file.dart';
|
| + String file2 = '$projPath/file.foo';
|
| + // create files
|
| + resourceProvider.newFile(file1, '');
|
| + resourceProvider.newFile(file2, '');
|
| + // set roots
|
| + manager.setRoots(<String>[projPath], <String>[], <String, String>{});
|
| + callbacks.assertContextPaths([projPath]);
|
| + callbacks.assertContextFiles(projPath, [file1]);
|
| + }
|
| +
|
| void test_setRoots_pathContainsDotFile() {
|
| // If the path to a file (relative to the context root) contains a folder
|
| // whose name begins with '.', then the file is ignored.
|
|
|