| 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_services/correction/status.dart'; | 7 import 'package:analysis_server/src/services/correction/status.dart'; |
| 8 import 'package:analysis_services/refactoring/refactoring.dart'; | 8 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; |
| 9 import 'package:analysis_services/src/refactoring/naming_conventions.dart'; | 9 import 'package:analysis_server/src/services/refactoring/naming_conventions.dart
'; |
| 10 import 'package:analysis_testing/reflective_tests.dart'; | 10 import 'package:analysis_testing/reflective_tests.dart'; |
| 11 import 'package:unittest/unittest.dart'; | 11 import 'package:unittest/unittest.dart'; |
| 12 | 12 |
| 13 import 'abstract_refactoring.dart'; | 13 import 'abstract_refactoring.dart'; |
| 14 | 14 |
| 15 | 15 |
| 16 main() { | 16 main() { |
| 17 groupSep = ' | '; | 17 groupSep = ' | '; |
| 18 runReflectiveTests(NamingConventionsTest); | 18 runReflectiveTests(NamingConventionsTest); |
| 19 } | 19 } |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 expectedMessage: "Variable name must not be null."); | 719 expectedMessage: "Variable name must not be null."); |
| 720 } | 720 } |
| 721 | 721 |
| 722 void test_validateVariableName_trailingBlanks() { | 722 void test_validateVariableName_trailingBlanks() { |
| 723 assertRefactoringStatus( | 723 assertRefactoringStatus( |
| 724 validateVariableName("newName "), | 724 validateVariableName("newName "), |
| 725 RefactoringStatusSeverity.ERROR, | 725 RefactoringStatusSeverity.ERROR, |
| 726 expectedMessage: "Variable name must not start or end with a blank."); | 726 expectedMessage: "Variable name must not start or end with a blank."); |
| 727 } | 727 } |
| 728 } | 728 } |
| OLD | NEW |