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

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

Issue 969113002: Reformat (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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/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) {

Powered by Google App Engine
This is Rietveld 408576698