| 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.correction.status; | 5 library test.services.correction.status; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/services/correction/status.dart'; | 7 import 'package:analysis_server/src/services/correction/status.dart'; |
| 8 import 'package:analysis_server/src/services/search/search_engine.dart'; | 8 import 'package:analysis_server/src/services/search/search_engine.dart'; |
| 9 import 'package:analysis_server/src/services/correction/source_range.dart'; | 9 import 'package:analysis_server/src/services/correction/source_range.dart'; |
| 10 import 'package:analysis_testing/abstract_single_unit.dart'; | 10 import 'package:analysis_testing/abstract_single_unit.dart'; |
| 11 import 'package:analysis_testing/reflective_tests.dart'; | 11 import 'package:analysis_testing/reflective_tests.dart'; |
| 12 import 'package:analyzer/src/generated/ast.dart'; | 12 import 'package:analyzer/src/generated/ast.dart'; |
| 13 import 'package:analyzer/src/generated/element.dart'; | 13 import 'package:analyzer/src/generated/element.dart'; |
| 14 import 'package:analyzer/src/generated/source.dart'; | 14 import 'package:analyzer/src/generated/source.dart'; |
| 15 import 'package:unittest/unittest.dart'; | 15 import 'package:unittest/unittest.dart'; |
| 16 import 'package:analysis_server/src/protocol2.dart' show Location, | 16 import 'package:analysis_server/src/protocol.dart' hide Element; |
| 17 RefactoringProblem, RefactoringProblemSeverity; | |
| 18 | 17 |
| 19 | 18 |
| 20 main() { | 19 main() { |
| 21 groupSep = ' | '; | 20 groupSep = ' | '; |
| 22 runReflectiveTests(RefactoringLocationTest); | 21 runReflectiveTests(RefactoringLocationTest); |
| 23 runReflectiveTests(RefactoringStatusTest); | 22 runReflectiveTests(RefactoringStatusTest); |
| 24 } | 23 } |
| 25 | 24 |
| 26 | 25 |
| 27 @ReflectiveTestCase() | 26 @ReflectiveTestCase() |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 expect(refactoringStatus.severity, RefactoringProblemSeverity.FATAL); | 219 expect(refactoringStatus.severity, RefactoringProblemSeverity.FATAL); |
| 221 expect(refactoringStatus.message, 'msg'); | 220 expect(refactoringStatus.message, 'msg'); |
| 222 } | 221 } |
| 223 | 222 |
| 224 void test_newWarning() { | 223 void test_newWarning() { |
| 225 RefactoringStatus refactoringStatus = new RefactoringStatus.warning('msg'); | 224 RefactoringStatus refactoringStatus = new RefactoringStatus.warning('msg'); |
| 226 expect(refactoringStatus.severity, RefactoringProblemSeverity.WARNING); | 225 expect(refactoringStatus.severity, RefactoringProblemSeverity.WARNING); |
| 227 expect(refactoringStatus.message, 'msg'); | 226 expect(refactoringStatus.message, 'msg'); |
| 228 } | 227 } |
| 229 } | 228 } |
| OLD | NEW |