| 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.domain.analysis.notification.navigation; | 5 library test.domain.analysis.notification.navigation; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/src/analysis_server.dart'; | 9 import 'package:analysis_server/src/analysis_server.dart'; |
| 10 import 'package:analysis_server/src/computer/element.dart'; | 10 import 'package:analysis_server/src/computer/element.dart'; |
| 11 import 'package:analysis_server/src/constants.dart'; | 11 import 'package:analysis_server/src/constants.dart'; |
| 12 import 'package:analysis_server/src/protocol.dart'; | 12 import 'package:analysis_server/src/protocol.dart'; |
| 13 import 'package:analysis_services/constants.dart'; | 13 import 'package:analysis_services/constants.dart'; |
| 14 import 'package:analysis_testing/reflective_tests.dart'; | 14 import 'package:analysis_testing/reflective_tests.dart'; |
| 15 import 'package:unittest/unittest.dart'; | 15 import 'package:unittest/unittest.dart'; |
| 16 | 16 |
| 17 import 'analysis_abstract.dart'; | 17 import 'analysis_abstract.dart'; |
| 18 | 18 |
| 19 | 19 |
| 20 main() { | 20 main() { |
| 21 groupSep = ' | '; |
| 21 runReflectiveTests(AnalysisNotificationNavigationTest); | 22 runReflectiveTests(AnalysisNotificationNavigationTest); |
| 22 } | 23 } |
| 23 | 24 |
| 24 | 25 |
| 25 @ReflectiveTestCase() | 26 @ReflectiveTestCase() |
| 26 class AnalysisNotificationNavigationTest extends AbstractAnalysisTest { | 27 class AnalysisNotificationNavigationTest extends AbstractAnalysisTest { |
| 27 List<NavigationRegion> regions; | 28 List<NavigationRegion> regions; |
| 28 NavigationRegion testRegion; | 29 NavigationRegion testRegion; |
| 29 List<Element> testTargets; | 30 List<Element> testTargets; |
| 30 Element testTarget; | 31 Element testTarget; |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 final int length; | 501 final int length; |
| 501 final List<Element> targets; | 502 final List<Element> targets; |
| 502 | 503 |
| 503 NavigationRegion(this.offset, this.length, this.targets); | 504 NavigationRegion(this.offset, this.length, this.targets); |
| 504 | 505 |
| 505 @override | 506 @override |
| 506 String toString() { | 507 String toString() { |
| 507 return 'NavigationRegion(offset=$offset; length=$length; targets=$targets'; | 508 return 'NavigationRegion(offset=$offset; length=$length; targets=$targets'; |
| 508 } | 509 } |
| 509 } | 510 } |
| OLD | NEW |