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.integration.analysis.outline; | 5 library test.integration.analysis.outline; |
6 | 6 |
7 import 'package:analysis_server/src/protocol.dart'; | 7 import 'package:analysis_server/src/protocol.dart'; |
| 8 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
8 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
9 | 10 |
10 import '../../reflective_tests.dart'; | |
11 import '../integration_tests.dart'; | 11 import '../integration_tests.dart'; |
12 | 12 |
13 main() { | 13 main() { |
14 runReflectiveTests(Test); | 14 defineReflectiveTests(Test); |
15 } | 15 } |
16 | 16 |
17 @reflectiveTest | 17 @reflectiveTest |
18 class Test extends AbstractAnalysisServerIntegrationTest { | 18 class Test extends AbstractAnalysisServerIntegrationTest { |
19 /** | 19 /** |
20 * Verify that the range of source text covered by the given outline objects | 20 * Verify that the range of source text covered by the given outline objects |
21 * is connected (the end of each object in the list corresponds to the start | 21 * is connected (the end of each object in the list corresponds to the start |
22 * of the next). | 22 * of the next). |
23 */ | 23 */ |
24 void checkConnected(List<Outline> outlineObjects) { | 24 void checkConnected(List<Outline> outlineObjects) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 expect(members, hasLength(5)); | 72 expect(members, hasLength(5)); |
73 expect(members[0].element.name, equals('field')); | 73 expect(members[0].element.name, equals('field')); |
74 expect(members[1].element.name, equals('method')); | 74 expect(members[1].element.name, equals('method')); |
75 expect(members[2].element.name, equals('staticMethod')); | 75 expect(members[2].element.name, equals('staticMethod')); |
76 expect(members[3].element.name, equals('getter')); | 76 expect(members[3].element.name, equals('getter')); |
77 expect(members[4].element.name, equals('setter')); | 77 expect(members[4].element.name, equals('setter')); |
78 checkConnected(members); | 78 checkConnected(members); |
79 }); | 79 }); |
80 } | 80 } |
81 } | 81 } |
OLD | NEW |