| Index: pkg/analysis_server/test/analysis_server_test.dart
|
| diff --git a/pkg/analysis_server/test/analysis_server_test.dart b/pkg/analysis_server/test/analysis_server_test.dart
|
| index 8527528eb2abe2d84b619f924563b80b604e9c8d..c238d5954f51e82351e6a5f7717f9f07e33ac117 100644
|
| --- a/pkg/analysis_server/test/analysis_server_test.dart
|
| +++ b/pkg/analysis_server/test/analysis_server_test.dart
|
| @@ -471,7 +471,28 @@ import "../foo/foo.dart";
|
| });
|
| }
|
|
|
| - test_setAnalysisSubscriptions_fileInIgnoredFolder() async {
|
| + test_setAnalysisSubscriptions_fileInIgnoredFolder_newOptions() async {
|
| + String path = '/project/samples/sample.dart';
|
| + resourceProvider.newFile(path, '');
|
| + resourceProvider.newFile(
|
| + '/project/analysis_options.yaml',
|
| + r'''
|
| +analyzer:
|
| + exclude:
|
| + - 'samples/**'
|
| +''');
|
| + server.setAnalysisRoots('0', ['/project'], [], {});
|
| + server.setAnalysisSubscriptions(<AnalysisService, Set<String>>{
|
| + AnalysisService.NAVIGATION: new Set<String>.from([path])
|
| + });
|
| + // the file is excluded, so no navigation notification
|
| + await server.onAnalysisComplete;
|
| + expect(channel.notificationsReceived.any((notification) {
|
| + return notification.event == ANALYSIS_NAVIGATION;
|
| + }), isFalse);
|
| + }
|
| +
|
| + test_setAnalysisSubscriptions_fileInIgnoredFolder_oldOptions() async {
|
| String path = '/project/samples/sample.dart';
|
| resourceProvider.newFile(path, '');
|
| resourceProvider.newFile(
|
|
|