| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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.services.completion.inherited_computer_test; | 5 library test.services.completion.inherited_computer_test; |
| 6 | 6 |
| 7 import 'package:analysis_server/plugin/protocol/protocol.dart' | 7 import 'package:analysis_server/plugin/protocol/protocol.dart' |
| 8 hide Element, ElementKind; | 8 hide Element, ElementKind; |
| 9 import 'package:analysis_server/src/provisional/completion/completion_dart.dart'
; | 9 import 'package:analysis_server/src/provisional/completion/completion_dart.dart'
; |
| 10 import 'package:analysis_server/src/services/completion/dart/inherited_contribut
or.dart'; | 10 import 'package:analysis_server/src/services/completion/dart/inherited_contribut
or.dart'; |
| 11 import 'package:analysis_server/src/services/completion/dart_completion_manager.
dart' | 11 import 'package:analysis_server/src/services/completion/dart_completion_manager.
dart' |
| 12 hide DartCompletionContributor; | 12 hide DartCompletionContributor; |
| 13 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 13 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 14 import 'package:unittest/unittest.dart'; | 14 import 'package:unittest/unittest.dart'; |
| 15 | 15 |
| 16 // import '../../../utils.dart'; | 16 // import '../../../utils.dart'; |
| 17 import 'dart_completion_contributor_test.dart'; | 17 import 'completion_contributor_util.dart'; |
| 18 | 18 |
| 19 main() { | 19 main() { |
| 20 // Revisit this contributor and these tests | 20 // Revisit this contributor and these tests |
| 21 // once DartChangeBuilder API has solidified. | 21 // once DartChangeBuilder API has solidified. |
| 22 // initializeTestEnvironment(); | 22 // initializeTestEnvironment(); |
| 23 // defineReflectiveTests(InheritedContributorTest); | 23 // defineReflectiveTests(InheritedContributorTest); |
| 24 } | 24 } |
| 25 | 25 |
| 26 @reflectiveTest | 26 @reflectiveTest |
| 27 class InheritedContributorTest extends DartCompletionContributorTest { | 27 class InheritedContributorTest extends DartCompletionContributorTest { |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 expect(cs.relevance, equals(DART_RELEVANCE_HIGH)); | 113 expect(cs.relevance, equals(DART_RELEVANCE_HIGH)); |
| 114 expect(cs.importUri, null); | 114 expect(cs.importUri, null); |
| 115 // expect(cs.selectionOffset, equals(completion.length)); | 115 // expect(cs.selectionOffset, equals(completion.length)); |
| 116 // expect(cs.selectionLength, equals(0)); | 116 // expect(cs.selectionLength, equals(0)); |
| 117 expect(cs.isDeprecated, isFalse); | 117 expect(cs.isDeprecated, isFalse); |
| 118 expect(cs.isPotential, isFalse); | 118 expect(cs.isPotential, isFalse); |
| 119 expect(cs.element, isNotNull); | 119 expect(cs.element, isNotNull); |
| 120 return cs; | 120 return cs; |
| 121 } | 121 } |
| 122 } | 122 } |
| OLD | NEW |