Index: pkg/analysis_server/test/analysis/notification_analysis_options_test.dart |
diff --git a/pkg/analysis_server/test/analysis/notification_analysis_options_test.dart b/pkg/analysis_server/test/analysis/notification_analysis_options_test.dart |
index e8cf7c4b3bcb0fdc620bf0764d78835636017ebf..b2d1addfcfb2379961a7e404424111dda4e73b9c 100644 |
--- a/pkg/analysis_server/test/analysis/notification_analysis_options_test.dart |
+++ b/pkg/analysis_server/test/analysis/notification_analysis_options_test.dart |
@@ -2,7 +2,7 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-library test.analysis.notification.analysis_options; |
+library test.analysis.notification_analysis_options_test; |
import 'package:analysis_server/plugin/protocol/protocol.dart'; |
import 'package:analysis_server/src/constants.dart'; |
@@ -18,11 +18,12 @@ import '../utils.dart'; |
main() { |
initializeTestEnvironment(); |
- defineReflectiveTests(AnalysisOptionsFileNotificationTest); |
+ defineReflectiveTests(NewAnalysisOptionsFileNotificationTest); |
+ defineReflectiveTests(OldAnalysisOptionsFileNotificationTest); |
} |
-@reflectiveTest |
-class AnalysisOptionsFileNotificationTest extends AbstractAnalysisTest { |
+abstract class AnalysisOptionsFileNotificationTest |
+ extends AbstractAnalysisTest { |
Map<String, List<AnalysisError>> filesErrors = {}; |
final testSource = ''' |
@@ -36,7 +37,7 @@ main() { |
List<AnalysisError> get optionsFileErrors => filesErrors[optionsFilePath]; |
- String get optionsFilePath => '$projectPath/.analysis_options'; |
+ String get optionsFilePath; |
AnalysisContext get testContext => server.getContainingContext(testFile); |
@@ -306,3 +307,15 @@ linter: |
} |
} |
} |
+ |
+@reflectiveTest |
+class NewAnalysisOptionsFileNotificationTest |
+ extends AnalysisOptionsFileNotificationTest { |
+ String get optionsFilePath => '$projectPath/analysis_options.yaml'; |
+} |
+ |
+@reflectiveTest |
+class OldAnalysisOptionsFileNotificationTest |
+ extends AnalysisOptionsFileNotificationTest { |
+ String get optionsFilePath => '$projectPath/.analysis_options'; |
+} |