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

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

Issue 2619633003: Fix the last Quick Fix test. (Closed)
Patch Set: Created 3 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/correction/fix_test.dart
diff --git a/pkg/analysis_server/test/services/correction/fix_test.dart b/pkg/analysis_server/test/services/correction/fix_test.dart
index 8e19ddf1fe72dfde5eed7a8155ab337dd2bc21eb..ff17fe1bb32cf43e89482aa2dfca104762a567bc 100644
--- a/pkg/analysis_server/test/services/correction/fix_test.dart
+++ b/pkg/analysis_server/test/services/correction/fix_test.dart
@@ -1870,10 +1870,16 @@ part 'my_part.dart';
UriResolver pkgResolver = new PackageMapUriResolver(provider, {
'my': <Folder>[provider.getResource('/my/lib')],
});
- context.sourceFactory = new SourceFactory(
+ SourceFactory sourceFactory = new SourceFactory(
[AbstractContextTest.SDK_RESOLVER, pkgResolver, resourceResolver]);
+ if (enableNewAnalysisDriver) {
+ driver.configure(sourceFactory: sourceFactory);
+ testUnit = (await driver.getResult(testFile)).unit;
+ } else {
+ context.sourceFactory = sourceFactory;
+ testUnit = await resolveLibraryUnit(testSource);
+ }
// prepare fix
- testUnit = await resolveLibraryUnit(testSource);
AnalysisError error = await _findErrorToFix();
fix = await _assertHasFix(DartFixKind.CREATE_FILE, error);
change = fix.change;
@@ -5320,12 +5326,6 @@ main() {
class FixProcessorTest_Driver extends FixProcessorTest {
@override
bool get enableNewAnalysisDriver => true;
-
- @failingTest
- @override
- test_createFile_forPart_inPackageLib() {
- return super.test_createFile_forPart_inPackageLib();
- }
}
@reflectiveTest
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698