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.sorter.common; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 | 6 |
9 import 'package:analysis_server/plugin/protocol/protocol.dart'; | 7 import 'package:analysis_server/protocol/protocol_generated.dart'; |
10 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; | 8 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; |
11 import 'package:analysis_server/src/services/completion/dart/common_usage_sorter
.dart'; | 9 import 'package:analysis_server/src/services/completion/dart/common_usage_sorter
.dart'; |
12 import 'package:analysis_server/src/services/completion/dart/completion_manager.
dart'; | 10 import 'package:analysis_server/src/services/completion/dart/completion_manager.
dart'; |
13 import 'package:test/test.dart'; | 11 import 'package:test/test.dart'; |
14 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 12 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
15 | 13 |
16 import '../../../domain_completion_util.dart'; | 14 import '../../../domain_completion_util.dart'; |
17 | 15 |
18 main() { | 16 main() { |
19 defineReflectiveSuite(() { | 17 defineReflectiveSuite(() { |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 assertHasResult(CompletionSuggestionKind.INVOCATION, 'nextBool'); | 139 assertHasResult(CompletionSuggestionKind.INVOCATION, 'nextBool'); |
142 assertHasResult(CompletionSuggestionKind.INVOCATION, 'nextDouble', | 140 assertHasResult(CompletionSuggestionKind.INVOCATION, 'nextDouble', |
143 relevance: DART_RELEVANCE_COMMON_USAGE - 1); | 141 relevance: DART_RELEVANCE_COMMON_USAGE - 1); |
144 assertHasResult(CompletionSuggestionKind.INVOCATION, 'nextInt', | 142 assertHasResult(CompletionSuggestionKind.INVOCATION, 'nextInt', |
145 relevance: DART_RELEVANCE_COMMON_USAGE); | 143 relevance: DART_RELEVANCE_COMMON_USAGE); |
146 assertNoResult('Random'); | 144 assertNoResult('Random'); |
147 assertNoResult('Object'); | 145 assertNoResult('Object'); |
148 assertNoResult('A'); | 146 assertNoResult('A'); |
149 } | 147 } |
150 } | 148 } |
OLD | NEW |