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

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

Issue 1300933002: Test fix for new dart2js hints default. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | 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/abstract_context.dart
diff --git a/pkg/analyzer/test/src/context/abstract_context.dart b/pkg/analyzer/test/src/context/abstract_context.dart
index 4c8f4a25c08d51836264ef465b81dc8fc13f6b5a..87f3b21b770b5948b1e0fb6bd21c8d4ccf4f3805 100644
--- a/pkg/analyzer/test/src/context/abstract_context.dart
+++ b/pkg/analyzer/test/src/context/abstract_context.dart
@@ -98,17 +98,23 @@ class AbstractContextTest {
return sources;
}
- void setUp() {
- // prepare AnalysisContext
+ void prepareAnalysisContext([AnalysisOptions options]) {
sourceFactory = new SourceFactory(<UriResolver>[
new DartUriResolver(sdk),
new ResourceUriResolver(resourceProvider)
]);
context = createAnalysisContext();
+ if (options != null) {
+ context.analysisOptions = options;
+ }
context.sourceFactory = sourceFactory;
analysisCache = context.analysisCache;
analysisDriver = context.driver;
}
+ void setUp() {
+ prepareAnalysisContext();
+ }
+
void tearDown() {}
}
« no previous file with comments | « no previous file | pkg/analyzer/test/src/task/dart_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698