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.dart.override; | 5 library test.services.completion.dart.override; |
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/dart/completion_dart.
dart'; | 9 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; |
10 import 'package:analysis_server/src/services/completion/dart/override_contributo
r.dart'; | 10 import 'package:analysis_server/src/services/completion/dart/override_contributo
r.dart'; |
11 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 11 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
12 import 'package:unittest/unittest.dart'; | 12 import 'package:test/test.dart'; |
13 | 13 |
14 import 'completion_contributor_util.dart'; | 14 import 'completion_contributor_util.dart'; |
15 | 15 |
16 main() { | 16 main() { |
17 // Revisit this contributor and these tests | 17 // Revisit this contributor and these tests |
18 // once DartChangeBuilder API has solidified. | 18 // once DartChangeBuilder API has solidified. |
19 // initializeTestEnvironment(); | 19 // initializeTestEnvironment(); |
20 // defineReflectiveTests(InheritedContributorTest); | 20 // defineReflectiveTests(InheritedContributorTest); |
21 } | 21 } |
22 | 22 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 expect(cs.relevance, equals(DART_RELEVANCE_HIGH)); | 110 expect(cs.relevance, equals(DART_RELEVANCE_HIGH)); |
111 expect(cs.importUri, null); | 111 expect(cs.importUri, null); |
112 // expect(cs.selectionOffset, equals(completion.length)); | 112 // expect(cs.selectionOffset, equals(completion.length)); |
113 // expect(cs.selectionLength, equals(0)); | 113 // expect(cs.selectionLength, equals(0)); |
114 expect(cs.isDeprecated, isFalse); | 114 expect(cs.isDeprecated, isFalse); |
115 expect(cs.isPotential, isFalse); | 115 expect(cs.isPotential, isFalse); |
116 expect(cs.element, isNotNull); | 116 expect(cs.element, isNotNull); |
117 return cs; | 117 return cs; |
118 } | 118 } |
119 } | 119 } |
OLD | NEW |