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/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(AnalysisNavigationTest); | 14 defineReflectiveTests(AnalysisNavigationTest); |
15 } | 15 } |
16 | 16 |
17 @reflectiveTest | 17 @reflectiveTest |
18 class AnalysisNavigationTest extends AbstractAnalysisServerIntegrationTest { | 18 class AnalysisNavigationTest extends AbstractAnalysisServerIntegrationTest { |
19 test_navigation() { | 19 test_navigation() { |
20 String pathname1 = sourcePath('test1.dart'); | 20 String pathname1 = sourcePath('test1.dart'); |
21 String text1 = r''' | 21 String text1 = r''' |
22 library foo; | 22 library foo; |
23 | 23 |
24 import 'dart:async'; | 24 import 'dart:async'; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 checkLocal('method();', 'method() {', ElementKind.METHOD); | 116 checkLocal('method();', 'method() {', ElementKind.METHOD); |
117 checkLocal('parameter());', 'parameter) {', ElementKind.PARAMETER); | 117 checkLocal('parameter());', 'parameter) {', ElementKind.PARAMETER); |
118 checkLocal('field = 1', 'field;', ElementKind.SETTER); | 118 checkLocal('field = 1', 'field;', ElementKind.SETTER); |
119 checkLocal('topLevelVariable;', 'topLevelVariable;', | 119 checkLocal('topLevelVariable;', 'topLevelVariable;', |
120 ElementKind.TOP_LEVEL_VARIABLE); | 120 ElementKind.TOP_LEVEL_VARIABLE); |
121 checkLocal( | 121 checkLocal( |
122 'TypeParameter field;', 'TypeParameter>', ElementKind.TYPE_PARAMETER); | 122 'TypeParameter field;', 'TypeParameter>', ElementKind.TYPE_PARAMETER); |
123 }); | 123 }); |
124 } | 124 } |
125 } | 125 } |
OLD | NEW |