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

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

Issue 2968473002: Remove incremental: logger, validator, options. (Closed)
Patch Set: Created 3 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/src/context/builder_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/context/context_test.dart
diff --git a/pkg/analyzer/test/src/context/context_test.dart b/pkg/analyzer/test/src/context/context_test.dart
index c8395bb21744b2821426826e482e14cbb5105682..47f99e62d2a750675b9d4a81d97f89a6009775ce 100644
--- a/pkg/analyzer/test/src/context/context_test.dart
+++ b/pkg/analyzer/test/src/context/context_test.dart
@@ -1824,22 +1824,6 @@ main() {}''');
expect(analysisResult.changeNotices, isNotNull);
}
- void test_handleContentsChanged_incremental_newContentsNull() {
- context.analysisOptions = new AnalysisOptionsImpl()..incremental = true;
- ContentCache contentCache = new ContentCache();
- context.contentCache = contentCache;
- // old contents
- String oldContents = 'foo() {}';
- Source source = resourceProvider.getFile('/test.dart').createSource();
- contentCache.setContents(source, oldContents);
- expect(context.computeLibraryElement(source), isNotNull);
- // new contents
- String newContents = null;
- contentCache.setContents(source, newContents);
- context.handleContentsChanged(source, oldContents, newContents, true);
- expect(context.getLibraryElement(source), isNull);
- }
-
void test_handleContentsChanged_noOriginal_sameAsFile() {
ContentCache contentCache = new ContentCache();
context.contentCache = contentCache;
@@ -2698,7 +2682,6 @@ void functionWithClosureAsDefaultParam([x = () => null]) {}
Future test_setChangedContents_libraryWithPart() {
AnalysisOptionsImpl options = new AnalysisOptionsImpl();
- options.incremental = true;
context.analysisOptions = options;
SourcesChangedListener listener = new SourcesChangedListener();
context.onSourcesChanged.listen(listener.onData);
@@ -2735,7 +2718,6 @@ int ya = 0;''';
void test_setChangedContents_notResolved() {
AnalysisOptionsImpl options =
new AnalysisOptionsImpl.from(context.analysisOptions);
- options.incremental = true;
context.analysisOptions = options;
String oldCode = r'''
library lib;
« no previous file with comments | « pkg/analyzer/test/src/context/builder_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698