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

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

Issue 1412573012: Option support for `enableGenericMethods`. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 5 years, 1 month 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/analyzer/test/generated/engine_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3b39f0baf4dbb55f6eb0fa038aeffab2117eb05e..5185e9b68eb98d3bf03bf300c74b8c1bd25b5e3d 100644
--- a/pkg/analyzer/test/src/task/options_test.dart
+++ b/pkg/analyzer/test/src/task/options_test.dart
@@ -41,6 +41,16 @@ class ContextConfigurationTest extends AbstractContextTest {
Map<String, YamlNode> parseOptions(String source) =>
optionsProvider.getOptionsFromString(source);
+ test_configure_enableGenericMethods() {
+ expect(analysisOptions.enableGenericMethods, false);
+ configureContext('''
+analyzer:
+ language:
+ enableGenericMethods: true
+''');
+ expect(analysisOptions.enableGenericMethods, true);
+ }
+
test_configure_enableSuperMixins() {
configureContext('''
analyzer:
@@ -245,7 +255,7 @@ analyzer:
language:
unsupported: true
''',
- [AnalysisOptionsWarningCode.UNSUPPORTED_OPTION_WITH_LEGAL_VALUE]);
+ [AnalysisOptionsWarningCode.UNSUPPORTED_OPTION_WITH_LEGAL_VALUES]);
}
test_analyzer_language_unsupported_value() {
« no previous file with comments | « pkg/analyzer/test/generated/engine_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698