| Index: pkg/analysis_server/test/services/refactoring/naming_conventions_test.dart
|
| diff --git a/pkg/analysis_server/test/services/refactoring/naming_conventions_test.dart b/pkg/analysis_server/test/services/refactoring/naming_conventions_test.dart
|
| index 0971db24bdcb00a8bddc74cf3062a9858d41d038..6a1b53fb842912916c69e8de82fcbcf4c5a621b6 100644
|
| --- a/pkg/analysis_server/test/services/refactoring/naming_conventions_test.dart
|
| +++ b/pkg/analysis_server/test/services/refactoring/naming_conventions_test.dart
|
| @@ -90,71 +90,6 @@ class NamingConventionsTest extends RefactoringTest {
|
| RefactoringProblemSeverity.FATAL,
|
| expectedMessage: "Class name must not start or end with a blank.");
|
| }
|
| - void test_validateConstantName_OK() {
|
| - assertRefactoringStatusOK(validateConstantName("NAME"));
|
| - }
|
| -
|
| - void test_validateConstantName_OK_digit() {
|
| - assertRefactoringStatusOK(validateConstantName("NAME2"));
|
| - }
|
| -
|
| - void test_validateConstantName_OK_underscoreLeading() {
|
| - assertRefactoringStatusOK(validateConstantName("_NAME"));
|
| - }
|
| -
|
| - void test_validateConstantName_OK_underscoreMiddle() {
|
| - assertRefactoringStatusOK(validateConstantName("MY_NEW_NAME"));
|
| - }
|
| -
|
| - void test_validateConstantName_empty() {
|
| - assertRefactoringStatus(
|
| - validateConstantName(""),
|
| - RefactoringProblemSeverity.FATAL,
|
| - expectedMessage: "Constant name must not be empty.");
|
| - }
|
| -
|
| - void test_validateConstantName_leadingBlanks() {
|
| - assertRefactoringStatus(
|
| - validateConstantName(" NewName"),
|
| - RefactoringProblemSeverity.FATAL,
|
| - expectedMessage: "Constant name must not start or end with a blank.");
|
| - }
|
| -
|
| - void test_validateConstantName_notAllCaps() {
|
| - assertRefactoringStatus(
|
| - validateConstantName("NewName"),
|
| - RefactoringProblemSeverity.WARNING,
|
| - expectedMessage: "Constant name should be all uppercase with underscores.");
|
| - }
|
| -
|
| - void test_validateConstantName_notIdentifierMiddle() {
|
| - assertRefactoringStatus(
|
| - validateConstantName("NA-ME"),
|
| - RefactoringProblemSeverity.FATAL,
|
| - expectedMessage: "Constant name must not contain '-'.");
|
| - }
|
| -
|
| - void test_validateConstantName_notIdentifierStart() {
|
| - assertRefactoringStatus(
|
| - validateConstantName("99_RED_BALLOONS"),
|
| - RefactoringProblemSeverity.FATAL,
|
| - expectedMessage:
|
| - "Constant name must begin with an uppercase letter or underscore.");
|
| - }
|
| -
|
| - void test_validateConstantName_null() {
|
| - assertRefactoringStatus(
|
| - validateConstantName(null),
|
| - RefactoringProblemSeverity.FATAL,
|
| - expectedMessage: "Constant name must not be null.");
|
| - }
|
| -
|
| - void test_validateConstantName_trailingBlanks() {
|
| - assertRefactoringStatus(
|
| - validateConstantName("NewName "),
|
| - RefactoringProblemSeverity.FATAL,
|
| - expectedMessage: "Constant name must not start or end with a blank.");
|
| - }
|
|
|
| void test_validateConstructorName_OK() {
|
| assertRefactoringStatusOK(validateConstructorName("newName"));
|
|
|