Index: pkg/analysis_server/test/services/refactoring/inline_local_test.dart |
diff --git a/pkg/analysis_server/test/services/refactoring/inline_local_test.dart b/pkg/analysis_server/test/services/refactoring/inline_local_test.dart |
index 335387b698a77f6f419a3ca7f38a8e02391c0a4c..8e8b6aba3f563a837ce281fef8b23fe2d65e459e 100644 |
--- a/pkg/analysis_server/test/services/refactoring/inline_local_test.dart |
+++ b/pkg/analysis_server/test/services/refactoring/inline_local_test.dart |
@@ -13,13 +13,11 @@ import 'package:unittest/unittest.dart'; |
import '../../reflective_tests.dart'; |
import 'abstract_refactoring.dart'; |
- |
main() { |
groupSep = ' | '; |
runReflectiveTests(InlineLocalTest); |
} |
- |
@reflectiveTest |
class InlineLocalTest extends RefactoringTest { |
InlineLocalRefactoringImpl refactoring; |
@@ -69,9 +67,7 @@ main() { |
'''); |
_createRefactoring('test = 0'); |
RefactoringStatus status = await refactoring.checkInitialConditions(); |
- assertRefactoringStatus( |
- status, |
- RefactoringProblemSeverity.FATAL, |
+ assertRefactoringStatus(status, RefactoringProblemSeverity.FATAL, |
expectedContextSearch: 'test = 1'); |
} |
@@ -84,9 +80,7 @@ main() { |
'''); |
_createRefactoring('test = 0'); |
RefactoringStatus status = await refactoring.checkInitialConditions(); |
- assertRefactoringStatus( |
- status, |
- RefactoringProblemSeverity.FATAL, |
+ assertRefactoringStatus(status, RefactoringProblemSeverity.FATAL, |
expectedContextSearch: 'test += 1'); |
} |
@@ -572,11 +566,9 @@ main() { |
void _assert_fatalError_selection(RefactoringStatus status) { |
expect(refactoring.variableName, isNull); |
expect(refactoring.referenceCount, 0); |
- assertRefactoringStatus( |
- status, |
- RefactoringProblemSeverity.FATAL, |
+ assertRefactoringStatus(status, RefactoringProblemSeverity.FATAL, |
expectedMessage: 'Local variable declaration or reference must be ' |
- 'selected to activate this refactoring.'); |
+ 'selected to activate this refactoring.'); |
} |
void _createRefactoring(String search) { |