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

Unified Diff: pkg/analysis_server/test/services/refactoring/rename_library_test.dart

Issue 2614903006: Run 'Rename Library' refactoring tests with the new analysis driver. (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 | « pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart ('k') | 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/refactoring/rename_library_test.dart
diff --git a/pkg/analysis_server/test/services/refactoring/rename_library_test.dart b/pkg/analysis_server/test/services/refactoring/rename_library_test.dart
index 4597089bc432f537be7d3f39c858190e2c80da5b..e49de69945d9e5839fce1362001e7f9f995a6fa5 100644
--- a/pkg/analysis_server/test/services/refactoring/rename_library_test.dart
+++ b/pkg/analysis_server/test/services/refactoring/rename_library_test.dart
@@ -14,6 +14,7 @@ import 'abstract_rename.dart';
main() {
defineReflectiveSuite(() {
defineReflectiveTests(RenameLibraryTest);
+ defineReflectiveTests(RenameLibraryTest_Driver);
});
}
@@ -52,7 +53,9 @@ part of my.app;
library my.app;
part 'part.dart';
''');
- index.indexUnit(context.resolveCompilationUnit2(unitSource, testSource));
+ if (!enableNewAnalysisDriver) {
+ index.indexUnit(context.resolveCompilationUnit2(unitSource, testSource));
+ }
// configure refactoring
_createRenameRefactoring();
expect(refactoring.refactoringName, 'Rename Library');
@@ -80,7 +83,9 @@ part of my . app;
library my . app;
part 'part.dart';
''');
- index.indexUnit(context.resolveCompilationUnit2(unitSource, testSource));
+ if (!enableNewAnalysisDriver) {
+ index.indexUnit(context.resolveCompilationUnit2(unitSource, testSource));
+ }
// configure refactoring
_createRenameRefactoring();
expect(refactoring.refactoringName, 'Rename Library');
@@ -102,3 +107,9 @@ part of the.new.name;
createRenameRefactoringForElement(testUnitElement.library);
}
}
+
+@reflectiveTest
+class RenameLibraryTest_Driver extends RenameLibraryTest {
+ @override
+ bool get enableNewAnalysisDriver => true;
+}
« no previous file with comments | « pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698