| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library test.services.refactoring.naming_conventions; | 5 library test.services.refactoring.naming_conventions; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/protocol2.dart' show | 7 import 'package:analysis_server/src/protocol.dart' show |
| 8 RefactoringProblemSeverity; | 8 RefactoringProblemSeverity; |
| 9 import 'package:analysis_server/src/services/refactoring/naming_conventions.dart
'; | 9 import 'package:analysis_server/src/services/refactoring/naming_conventions.dart
'; |
| 10 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; | 10 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; |
| 11 import 'package:analysis_testing/reflective_tests.dart'; | 11 import 'package:analysis_testing/reflective_tests.dart'; |
| 12 import 'package:unittest/unittest.dart'; | 12 import 'package:unittest/unittest.dart'; |
| 13 | 13 |
| 14 import 'abstract_refactoring.dart'; | 14 import 'abstract_refactoring.dart'; |
| 15 | 15 |
| 16 | 16 |
| 17 main() { | 17 main() { |
| (...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 expectedMessage: "Variable name must not be null."); | 720 expectedMessage: "Variable name must not be null."); |
| 721 } | 721 } |
| 722 | 722 |
| 723 void test_validateVariableName_trailingBlanks() { | 723 void test_validateVariableName_trailingBlanks() { |
| 724 assertRefactoringStatus( | 724 assertRefactoringStatus( |
| 725 validateVariableName("newName "), | 725 validateVariableName("newName "), |
| 726 RefactoringProblemSeverity.ERROR, | 726 RefactoringProblemSeverity.ERROR, |
| 727 expectedMessage: "Variable name must not start or end with a blank."); | 727 expectedMessage: "Variable name must not start or end with a blank."); |
| 728 } | 728 } |
| 729 } | 729 } |
| OLD | NEW |