| 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:unittest/unittest.dart'; | 8 import 'package:unittest/unittest.dart'; |
| 9 | 9 |
| 10 import '../../reflective_tests.dart'; | 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 runReflectiveTests(AnalysisNavigationTest); |
| 15 } | 15 } |
| 16 | 16 |
| 17 @ReflectiveTestCase() | 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'; |
| 25 part 'test2.dart'; | 25 part 'test2.dart'; |
| 26 | 26 |
| 27 class Class<TypeParameter> { | 27 class Class<TypeParameter> { |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 'topLevelVariable;', | 131 'topLevelVariable;', |
| 132 'topLevelVariable;', | 132 'topLevelVariable;', |
| 133 ElementKind.TOP_LEVEL_VARIABLE); | 133 ElementKind.TOP_LEVEL_VARIABLE); |
| 134 checkLocal( | 134 checkLocal( |
| 135 'TypeParameter field;', | 135 'TypeParameter field;', |
| 136 'TypeParameter>', | 136 'TypeParameter>', |
| 137 ElementKind.TYPE_PARAMETER); | 137 ElementKind.TYPE_PARAMETER); |
| 138 }); | 138 }); |
| 139 } | 139 } |
| 140 } | 140 } |
| OLD | NEW |