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.services.completion.dart.static_member; | 5 library test.services.completion.dart.static_member; |
6 | 6 |
7 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; | 7 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; |
8 import 'package:analysis_server/src/services/completion/dart/static_member_contr
ibutor.dart'; | 8 import 'package:analysis_server/src/services/completion/dart/static_member_contr
ibutor.dart'; |
| 9 import 'package:test/test.dart'; |
9 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 10 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
10 import 'package:unittest/unittest.dart'; | |
11 | 11 |
12 import '../../../utils.dart'; | 12 import '../../../utils.dart'; |
13 import 'completion_contributor_util.dart'; | 13 import 'completion_contributor_util.dart'; |
14 | 14 |
15 main() { | 15 main() { |
16 initializeTestEnvironment(); | 16 initializeTestEnvironment(); |
17 defineReflectiveTests(StaticMemberContributorTest); | 17 defineReflectiveSuite(() { |
| 18 defineReflectiveTests(StaticMemberContributorTest); |
| 19 }); |
18 } | 20 } |
19 | 21 |
20 @reflectiveTest | 22 @reflectiveTest |
21 class StaticMemberContributorTest extends DartCompletionContributorTest { | 23 class StaticMemberContributorTest extends DartCompletionContributorTest { |
22 @override | 24 @override |
23 DartCompletionContributor createContributor() { | 25 DartCompletionContributor createContributor() { |
24 return new StaticMemberContributor(); | 26 return new StaticMemberContributor(); |
25 } | 27 } |
26 | 28 |
27 fail_enumConst_deprecated() async { | 29 fail_enumConst_deprecated() async { |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 assertNotSuggested('m'); | 282 assertNotSuggested('m'); |
281 assertNotSuggested('_n'); | 283 assertNotSuggested('_n'); |
282 assertNotSuggested('a'); | 284 assertNotSuggested('a'); |
283 assertNotSuggested('A'); | 285 assertNotSuggested('A'); |
284 assertNotSuggested('X'); | 286 assertNotSuggested('X'); |
285 assertNotSuggested('w'); | 287 assertNotSuggested('w'); |
286 assertNotSuggested('Object'); | 288 assertNotSuggested('Object'); |
287 assertNotSuggested('=='); | 289 assertNotSuggested('=='); |
288 } | 290 } |
289 } | 291 } |
OLD | NEW |