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.analysis.notification.navigation; | 5 library test.analysis.notification.navigation; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analysis_server/src/constants.dart'; | 9 import 'package:analysis_server/src/constants.dart'; |
10 import 'package:analysis_server/src/protocol.dart'; | 10 import 'package:analysis_server/src/protocol.dart'; |
11 import 'package:unittest/unittest.dart'; | 11 import 'package:unittest/unittest.dart'; |
12 | 12 |
13 import '../analysis_abstract.dart'; | 13 import '../analysis_abstract.dart'; |
14 import '../reflective_tests.dart'; | 14 import '../reflective_tests.dart'; |
15 | 15 |
16 | 16 |
17 main() { | 17 main() { |
18 groupSep = ' | '; | 18 groupSep = ' | '; |
19 runReflectiveTests(AnalysisNotificationNavigationTest); | 19 runReflectiveTests(AnalysisNotificationNavigationTest); |
20 } | 20 } |
21 | 21 |
22 | 22 |
23 @ReflectiveTestCase() | 23 @reflectiveTest |
24 class AnalysisNotificationNavigationTest extends AbstractAnalysisTest { | 24 class AnalysisNotificationNavigationTest extends AbstractAnalysisTest { |
25 List<NavigationRegion> regions; | 25 List<NavigationRegion> regions; |
26 List<NavigationTarget> targets; | 26 List<NavigationTarget> targets; |
27 List<String> targetFiles; | 27 List<String> targetFiles; |
28 | 28 |
29 NavigationRegion testRegion; | 29 NavigationRegion testRegion; |
30 List<int> testTargetIndexes; | 30 List<int> testTargetIndexes; |
31 NavigationTarget testTarget; | 31 NavigationTarget testTarget; |
32 | 32 |
33 /** | 33 /** |
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 test_type_void() { | 608 test_type_void() { |
609 addTestFile(''' | 609 addTestFile(''' |
610 void main() { | 610 void main() { |
611 } | 611 } |
612 '''); | 612 '''); |
613 return prepareNavigation().then((_) { | 613 return prepareNavigation().then((_) { |
614 assertNoRegionAt('void'); | 614 assertNoRegionAt('void'); |
615 }); | 615 }); |
616 } | 616 } |
617 } | 617 } |
OLD | NEW |