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

Unified Diff: pkg/analyzer/test/src/task/options_test.dart

Issue 1975963002: Support the name analysis_options.yaml for analysis options files (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
Index: pkg/analyzer/test/src/task/options_test.dart
diff --git a/pkg/analyzer/test/src/task/options_test.dart b/pkg/analyzer/test/src/task/options_test.dart
index 880479d5269af2716ac23a9bcd295654dcd4c9d3..c00dc389f33075ebbb6f21f8592a45dea6edeea9 100644
--- a/pkg/analyzer/test/src/task/options_test.dart
+++ b/pkg/analyzer/test/src/task/options_test.dart
@@ -23,7 +23,8 @@ import '../context/abstract_context.dart';
main() {
initializeTestEnvironment();
runReflectiveTests(ContextConfigurationTest);
- runReflectiveTests(GenerateOptionsErrorsTaskTest);
+ runReflectiveTests(GenerateNewOptionsErrorsTaskTest);
+ runReflectiveTests(GenerateOldOptionsErrorsTaskTest);
runReflectiveTests(OptionsFileValidatorTest);
}
@@ -146,10 +147,19 @@ analyzer:
}
@reflectiveTest
-class GenerateOptionsErrorsTaskTest extends AbstractContextTest {
- final optionsFilePath = '/${AnalysisEngine.ANALYSIS_OPTIONS_FILE}';
+class GenerateNewOptionsErrorsTaskTest extends GenerateOptionsErrorsTaskTest {
+ String get optionsFilePath => '/${AnalysisEngine.ANALYSIS_OPTIONS_YAML_FILE}';
+}
+@reflectiveTest
+class GenerateOldOptionsErrorsTaskTest extends GenerateOptionsErrorsTaskTest {
+ String get optionsFilePath => '/${AnalysisEngine.ANALYSIS_OPTIONS_FILE}';
+}
+
+abstract class GenerateOptionsErrorsTaskTest extends AbstractContextTest {
Source source;
+
+ String get optionsFilePath;
LineInfo lineInfo(String source) =>
GenerateOptionsErrorsTask.computeLineInfo(source);

Powered by Google App Engine
This is Rietveld 408576698