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

Unified Diff: pkg/analysis_server/test/services/correction/assist_test.dart

Issue 2935733003: Remove some unnecessary tests for non-driver mode (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
Index: pkg/analysis_server/test/services/correction/assist_test.dart
diff --git a/pkg/analysis_server/test/services/correction/assist_test.dart b/pkg/analysis_server/test/services/correction/assist_test.dart
index 47258dada3d5d603318b0ecb95b42b088205e805..71233c75f7f1fe0425ccb92563a54be1ed4c9580 100644
--- a/pkg/analysis_server/test/services/correction/assist_test.dart
+++ b/pkg/analysis_server/test/services/correction/assist_test.dart
@@ -515,14 +515,7 @@ main() {
Source appSource = addSource('/app.dart', appCode);
testSource = addSource('/test.dart', testCode);
// resolve
- if (enableNewAnalysisDriver) {
- await resolveTestUnit(testCode);
- } else {
- context.resolveCompilationUnit2(appSource, appSource);
- testUnit = context.resolveCompilationUnit2(testSource, appSource);
- testUnitElement = testUnit.element;
- testLibraryElement = testUnitElement.library;
- }
+ await resolveTestUnit(testCode);
// prepare the assist
offset = findOffset('v = ');
assist = await _assertHasAssist(DartAssistKind.ADD_TYPE_ANNOTATION);
@@ -4719,11 +4712,7 @@ main() {
});
SourceFactory sourceFactory = new SourceFactory(
[new DartUriResolver(sdk), pkgResolver, resourceResolver]);
- if (enableNewAnalysisDriver) {
- driver.configure(sourceFactory: sourceFactory);
- } else {
- context.sourceFactory = sourceFactory;
- }
+ driver.configure(sourceFactory: sourceFactory);
// force 'flutter' resolution
addSource(
'/tmp/other.dart',

Powered by Google App Engine
This is Rietveld 408576698