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

Unified Diff: pkg/analysis_server/test/edit/refactoring_test.dart

Issue 2868353002: Enable analysis driver in tests where possible (Closed)
Patch Set: Created 3 years, 7 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/edit/refactoring_test.dart
diff --git a/pkg/analysis_server/test/edit/refactoring_test.dart b/pkg/analysis_server/test/edit/refactoring_test.dart
index eb52217e0f644050818c93e72f21961d413fa578..aa5e5b627acf6bec13f802324df1037f7c33581a 100644
--- a/pkg/analysis_server/test/edit/refactoring_test.dart
+++ b/pkg/analysis_server/test/edit/refactoring_test.dart
@@ -35,6 +35,12 @@ main() {
@reflectiveTest
class ConvertGetterMethodToMethodTest extends _AbstractGetRefactoring_Test {
+ @override
+ void setUp() {
+ enableNewAnalysisDriver = true;
+ super.setUp();
+ }
+
test_function() {
addTestFile('''
int get test => 42;
@@ -132,6 +138,12 @@ main(A a, B b, C c, D d) {
@reflectiveTest
class ConvertMethodToGetterTest extends _AbstractGetRefactoring_Test {
+ @override
+ void setUp() {
+ enableNewAnalysisDriver = true;
+ super.setUp();
+ }
+
test_function() {
addTestFile('''
int test() => 42;
@@ -514,6 +526,12 @@ class ExtractMethodTest extends _AbstractGetRefactoring_Test {
String name = 'res';
ExtractMethodOptions options;
+ @override
+ void setUp() {
+ enableNewAnalysisDriver = true;
+ super.setUp();
+ }
+
test_expression() {
addTestFile('''
main() {
@@ -781,6 +799,7 @@ class GetAvailableRefactoringsTest extends AbstractAnalysisTest {
@override
void setUp() {
+ enableNewAnalysisDriver = true;
super.setUp();
createProject();
ExtensionManager manager = new ExtensionManager();
@@ -1075,6 +1094,12 @@ main() {
class InlineMethodTest extends _AbstractGetRefactoring_Test {
InlineMethodOptions options = new InlineMethodOptions(true, true);
+ @override
+ void setUp() {
+ enableNewAnalysisDriver = true;
+ super.setUp();
+ }
+
test_feedback() {
addTestFile('''
class A {
« no previous file with comments | « pkg/analysis_server/test/edit/format_test.dart ('k') | pkg/analysis_server/test/search/element_references_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698