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.navigation; | 5 library test.integration.analysis.navigation; |
6 | 6 |
7 import 'package:analysis_server/plugin/protocol/protocol.dart'; | 7 import 'package:analysis_server/plugin/protocol/protocol.dart'; |
8 import 'package:test/test.dart'; | 8 import 'package:test/test.dart'; |
9 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 9 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
10 | 10 |
11 import '../../utils.dart'; | |
12 import '../integration_tests.dart'; | 11 import '../integration_tests.dart'; |
13 | 12 |
14 main() { | 13 main() { |
15 initializeTestEnvironment(); | |
16 defineReflectiveSuite(() { | 14 defineReflectiveSuite(() { |
17 defineReflectiveTests(AnalysisNavigationTest); | 15 defineReflectiveTests(AnalysisNavigationTest); |
18 }); | 16 }); |
19 } | 17 } |
20 | 18 |
21 @reflectiveTest | 19 @reflectiveTest |
22 class AnalysisNavigationTest extends AbstractAnalysisServerIntegrationTest { | 20 class AnalysisNavigationTest extends AbstractAnalysisServerIntegrationTest { |
23 test_navigation() { | 21 test_navigation() { |
24 String pathname1 = sourcePath('test1.dart'); | 22 String pathname1 = sourcePath('test1.dart'); |
25 String text1 = r''' | 23 String text1 = r''' |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 checkLocal('method();', 'method() {', ElementKind.METHOD); | 128 checkLocal('method();', 'method() {', ElementKind.METHOD); |
131 checkLocal('parameter());', 'parameter) {', ElementKind.PARAMETER); | 129 checkLocal('parameter());', 'parameter) {', ElementKind.PARAMETER); |
132 checkLocal('field = 1', 'field;', ElementKind.SETTER); | 130 checkLocal('field = 1', 'field;', ElementKind.SETTER); |
133 checkLocal('topLevelVariable;', 'topLevelVariable;', | 131 checkLocal('topLevelVariable;', 'topLevelVariable;', |
134 ElementKind.TOP_LEVEL_VARIABLE); | 132 ElementKind.TOP_LEVEL_VARIABLE); |
135 checkLocal( | 133 checkLocal( |
136 'TypeParameter field;', 'TypeParameter>', ElementKind.TYPE_PARAMETER); | 134 'TypeParameter field;', 'TypeParameter>', ElementKind.TYPE_PARAMETER); |
137 }); | 135 }); |
138 } | 136 } |
139 } | 137 } |
OLD | NEW |