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

Unified Diff: pkg/analyzer/test/generated/resolver_test.dart

Issue 1166503004: Add correct test for issue 23523 (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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/element_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/generated/resolver_test.dart
diff --git a/pkg/analyzer/test/generated/resolver_test.dart b/pkg/analyzer/test/generated/resolver_test.dart
index 8307a9cc1527a94b50ffe108d856e5091c1def34..77d23371e4ca2fdf532f2f0cb242a70495d31c56 100644
--- a/pkg/analyzer/test/generated/resolver_test.dart
+++ b/pkg/analyzer/test/generated/resolver_test.dart
@@ -414,12 +414,12 @@ class AnalysisContextHelper {
/**
* Creates new [AnalysisContext] using [AnalysisContextFactory.contextWithCore].
*/
- AnalysisContextHelper() {
- context = AnalysisContextFactory.contextWithCore();
- AnalysisOptionsImpl options =
- new AnalysisOptionsImpl.from(context.analysisOptions);
+ AnalysisContextHelper([AnalysisOptionsImpl options]) {
+ if (options == null) {
+ options = new AnalysisOptionsImpl();
+ }
options.cacheSize = 256;
- context.analysisOptions = options;
+ context = AnalysisContextFactory.contextWithCoreAndOptions(options);
}
Source addSource(String path, String code) {
« no previous file with comments | « pkg/analyzer/test/generated/element_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698