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

Unified Diff: pkg/analyzer/test/src/context/builder_test.dart

Issue 2361433002: Async is no longer optional (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « pkg/analyzer/test/generated/resolver_test.dart ('k') | pkg/analyzer/test/src/task/dart_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/context/builder_test.dart
diff --git a/pkg/analyzer/test/src/context/builder_test.dart b/pkg/analyzer/test/src/context/builder_test.dart
index 3ba56acc7ff5906e95d5a42aa23089af9643f622..6de0ec6ac5723ee9926625bbcb8cc2061c14049a 100644
--- a/pkg/analyzer/test/src/context/builder_test.dart
+++ b/pkg/analyzer/test/src/context/builder_test.dart
@@ -135,7 +135,6 @@ const Map<String, LibraryInfo> libraries = const {
AnalysisOptionsImpl defaultOptions = new AnalysisOptionsImpl();
defaultOptions.dart2jsHint = !defaultOptions.dart2jsHint;
defaultOptions.enableAssertMessage = !defaultOptions.enableAssertMessage;
- defaultOptions.enableAsync = !defaultOptions.enableAsync;
defaultOptions.enableGenericMethods = !defaultOptions.enableGenericMethods;
defaultOptions.enableStrictCallChecks =
!defaultOptions.enableStrictCallChecks;
@@ -498,7 +497,7 @@ linter:
defaultOptions.enableGenericMethods = true;
builder.defaultOptions = defaultOptions;
AnalysisOptionsImpl expected = new AnalysisOptionsImpl();
- expected.enableAsync = true;
+ expected.enableSuperMixins = true;
expected.enableGenericMethods = true;
String path = '/some/directory/path';
String filePath = '$path/${AnalysisEngine.ANALYSIS_OPTIONS_YAML_FILE}';
@@ -506,7 +505,8 @@ linter:
filePath,
'''
analyzer:
- enableAsync : true
+ language:
+ enableSuperMixins : true
''');
AnalysisEngine engine = AnalysisEngine.instance;
@@ -515,7 +515,9 @@ analyzer:
try {
_TestOptionsProcessor processor = new _TestOptionsProcessor();
processor.expectedOptions = <String, Object>{
- 'analyzer': {'enableAsync': true}
+ 'analyzer': {
+ 'language': {'enableSuperMixins': true}
+ }
};
(plugin.optionsProcessorExtensionPoint as ExtensionPointImpl)
.add(processor);
@@ -566,14 +568,15 @@ linter:
void test_getAnalysisOptions_noDefault_overrides() {
AnalysisOptionsImpl expected = new AnalysisOptionsImpl();
- expected.enableAsync = true;
+ expected.enableSuperMixins = true;
String path = '/some/directory/path';
String filePath = '$path/${AnalysisEngine.ANALYSIS_OPTIONS_YAML_FILE}';
resourceProvider.newFile(
filePath,
'''
analyzer:
- enableAsync : true
+ language:
+ enableSuperMixins : true
''');
AnalysisContext context = AnalysisEngine.instance.createAnalysisContext();
@@ -643,7 +646,6 @@ analyzer:
expect(actual.cacheSize, expected.cacheSize);
expect(actual.dart2jsHint, expected.dart2jsHint);
expect(actual.enableAssertMessage, expected.enableAssertMessage);
- expect(actual.enableAsync, expected.enableAsync);
expect(actual.enableStrictCallChecks, expected.enableStrictCallChecks);
expect(actual.enableGenericMethods, expected.enableGenericMethods);
expect(actual.enableSuperMixins, expected.enableSuperMixins);
« no previous file with comments | « pkg/analyzer/test/generated/resolver_test.dart ('k') | pkg/analyzer/test/src/task/dart_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698