| 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.edit.fix; | 5 library test.edit.fix; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/computer/element.dart'; | 7 import 'package:analysis_server/src/computer/element.dart'; |
| 8 import 'package:analysis_server/src/computer/error.dart'; | 8 import 'package:analysis_server/src/computer/error.dart'; |
| 9 import 'package:analysis_server/src/edit/fix.dart'; | 9 import 'package:analysis_server/src/edit/fix.dart'; |
| 10 import 'package:analysis_services/constants.dart'; | 10 import 'package:analysis_services/constants.dart'; |
| 11 import 'package:analysis_services/correction/change.dart'; | 11 import 'package:analysis_services/correction/change.dart'; |
| 12 import 'package:analysis_services/correction/fix.dart' as services; | 12 import 'package:analysis_services/correction/fix.dart' as services; |
| 13 import 'package:analysis_services/index/index.dart' hide Location; | 13 import 'package:analysis_services/index/index.dart' hide Location; |
| 14 import 'package:analysis_services/index/local_memory_index.dart'; | 14 import 'package:analysis_services/index/local_memory_index.dart'; |
| 15 import 'package:analysis_services/src/search/search_engine.dart'; | 15 import 'package:analysis_services/src/search/search_engine.dart'; |
| 16 import 'package:analysis_testing/abstract_single_unit.dart'; | 16 import 'package:analysis_testing/abstract_single_unit.dart'; |
| 17 import 'package:analysis_testing/reflective_tests.dart'; | 17 import 'package:analysis_testing/reflective_tests.dart'; |
| 18 import 'package:analyzer/src/generated/element.dart' as engine; | 18 import 'package:analyzer/src/generated/element.dart' as engine; |
| 19 import 'package:analyzer/src/generated/engine.dart' as engine; | 19 import 'package:analyzer/src/generated/engine.dart' as engine; |
| 20 import 'package:analyzer/src/generated/error.dart' as engine; | 20 import 'package:analyzer/src/generated/error.dart' as engine; |
| 21 import 'package:analyzer/src/generated/utilities_dart.dart' as engine; | 21 import 'package:analyzer/src/generated/utilities_dart.dart' as engine; |
| 22 import 'package:unittest/unittest.dart' hide ERROR; | 22 import 'package:unittest/unittest.dart' hide ERROR; |
| 23 | 23 |
| 24 | 24 |
| 25 | 25 |
| 26 main() { | 26 main() { |
| 27 groupSep = ' | '; | 27 groupSep = ' | '; |
| 28 group('ErrorFixes', () { | 28 runReflectiveTests(ErrorFixesTest); |
| 29 runReflectiveTests(ErrorFixesTest); | |
| 30 }); | |
| 31 } | 29 } |
| 32 | 30 |
| 33 | 31 |
| 34 @ReflectiveTestCase() | 32 @ReflectiveTestCase() |
| 35 class ErrorFixesTest extends AbstractSingleUnitTest { | 33 class ErrorFixesTest extends AbstractSingleUnitTest { |
| 36 Index index; | 34 Index index; |
| 37 SearchEngineImpl searchEngine; | 35 SearchEngineImpl searchEngine; |
| 38 | 36 |
| 39 void setUp() { | 37 void setUp() { |
| 40 super.setUp(); | 38 super.setUp(); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 OFFSET: 20, | 143 OFFSET: 20, |
| 146 LENGTH: 0, | 144 LENGTH: 0, |
| 147 REPLACEMENT: ';' | 145 REPLACEMENT: ';' |
| 148 }] | 146 }] |
| 149 }], | 147 }], |
| 150 LINKED_POSITION_GROUPS: [] | 148 LINKED_POSITION_GROUPS: [] |
| 151 }] | 149 }] |
| 152 }); | 150 }); |
| 153 } | 151 } |
| 154 } | 152 } |
| OLD | NEW |