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

Unified Diff: pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart

Issue 2571333002: Fix completion tests that attempted to resolve a library. (Closed)
Patch Set: Created 4 years 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/analysis_server/test/services/completion/dart/imported_reference_contributor_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart
diff --git a/pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart b/pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart
index 62deed1819cbcb9eebc2cc217530bd1bda672dfe..4c03a4f031963356da3e1629ea3929238df0538d 100644
--- a/pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart
+++ b/pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart
@@ -566,8 +566,10 @@ abstract class DartCompletionContributorTest extends AbstractContextTest {
void resolveSource(String path, String content) {
Source libSource = addSource(path, content);
- var target = new LibrarySpecificUnit(libSource, libSource);
- context.computeResult(target, RESOLVED_UNIT);
+ if (!enableNewAnalysisDriver) {
+ var target = new LibrarySpecificUnit(libSource, libSource);
+ context.computeResult(target, RESOLVED_UNIT);
+ }
}
@override
« no previous file with comments | « no previous file | pkg/analysis_server/test/services/completion/dart/imported_reference_contributor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698