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

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

Issue 1266923004: More fixes for failures on the Windows bot (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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/extract_local_test.dart
diff --git a/pkg/analysis_server/test/services/refactoring/extract_local_test.dart b/pkg/analysis_server/test/services/refactoring/extract_local_test.dart
index a5c29c2bba44538d8fea77824b5d70df7575aeeb..bba2a6ec5e1025ad7b875e05ff110331ca65d0f1 100644
--- a/pkg/analysis_server/test/services/refactoring/extract_local_test.dart
+++ b/pkg/analysis_server/test/services/refactoring/extract_local_test.dart
@@ -13,10 +13,11 @@ import 'package:analysis_server/src/services/refactoring/refactoring.dart';
import 'package:test_reflective_loader/test_reflective_loader.dart';
import 'package:unittest/unittest.dart';
+import '../../utils.dart';
import 'abstract_refactoring.dart';
main() {
- groupSep = ' | ';
+ initializeTestEnvironment();
defineReflectiveTests(ExtractLocalTest);
}
@@ -35,7 +36,8 @@ main() {
// conflicting name
RefactoringStatus status = await refactoring.checkAllConditions();
assertRefactoringStatus(status, RefactoringProblemSeverity.WARNING,
- expectedMessage: "A variable with name 'res' is already defined in the visible scope.");
+ expectedMessage:
+ "A variable with name 'res' is already defined in the visible scope.");
}
test_checkFinalConditions_sameVariable_before() async {
@@ -49,7 +51,8 @@ main() {
// conflicting name
RefactoringStatus status = await refactoring.checkAllConditions();
assertRefactoringStatus(status, RefactoringProblemSeverity.WARNING,
- expectedMessage: "A variable with name 'res' is already defined in the visible scope.");
+ expectedMessage:
+ "A variable with name 'res' is already defined in the visible scope.");
}
test_checkInitialConditions_assignmentLeftHandSize() async {
@@ -127,7 +130,8 @@ int a = 1 + 2;
// check conditions
RefactoringStatus status = await refactoring.checkAllConditions();
assertRefactoringStatus(status, RefactoringProblemSeverity.FATAL,
- expectedMessage: 'Expression inside of function must be selected to activate this refactoring.');
+ expectedMessage:
+ 'Expression inside of function must be selected to activate this refactoring.');
}
test_checkInitialConditions_stringSelection_leadingQuote() async {
@@ -140,7 +144,8 @@ main() {
// check conditions
RefactoringStatus status = await refactoring.checkAllConditions();
assertRefactoringStatus(status, RefactoringProblemSeverity.FATAL,
- expectedMessage: 'Cannot extract only leading or trailing quote of string literal.');
+ expectedMessage:
+ 'Cannot extract only leading or trailing quote of string literal.');
}
test_checkInitialConditions_stringSelection_trailingQuote() async {
@@ -153,7 +158,8 @@ main() {
// check conditions
RefactoringStatus status = await refactoring.checkAllConditions();
assertRefactoringStatus(status, RefactoringProblemSeverity.FATAL,
- expectedMessage: 'Cannot extract only leading or trailing quote of string literal.');
+ expectedMessage:
+ 'Cannot extract only leading or trailing quote of string literal.');
}
test_checkLocalName() {
@@ -933,7 +939,8 @@ main() {
Future _assertInitialConditions_fatal_selection() async {
RefactoringStatus status = await refactoring.checkInitialConditions();
assertRefactoringStatus(status, RefactoringProblemSeverity.FATAL,
- expectedMessage: 'Expression must be selected to activate this refactoring.');
+ expectedMessage:
+ 'Expression must be selected to activate this refactoring.');
}
/**

Powered by Google App Engine
This is Rietveld 408576698