| 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.completion; | 5 library test.domain.completion; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/plugin/protocol/protocol.dart'; | 9 import 'package:analysis_server/plugin/protocol/protocol.dart'; |
| 10 import 'package:analysis_server/src/analysis_server.dart'; | 10 import 'package:analysis_server/src/analysis_server.dart'; |
| 11 import 'package:analysis_server/src/channel/channel.dart'; | 11 import 'package:analysis_server/src/channel/channel.dart'; |
| 12 import 'package:analysis_server/src/constants.dart'; | |
| 13 import 'package:analysis_server/src/context_manager.dart'; | 12 import 'package:analysis_server/src/context_manager.dart'; |
| 14 import 'package:analysis_server/src/domain_analysis.dart'; | 13 import 'package:analysis_server/src/domain_analysis.dart'; |
| 15 import 'package:analysis_server/src/domain_completion.dart'; | 14 import 'package:analysis_server/src/domain_completion.dart'; |
| 16 import 'package:analysis_server/src/plugin/server_plugin.dart'; | 15 import 'package:analysis_server/src/plugin/server_plugin.dart'; |
| 17 import 'package:analysis_server/src/provisional/completion/completion_core.dart' | 16 import 'package:analysis_server/src/provisional/completion/completion_core.dart' |
| 18 show AnalysisRequest, CompletionRequest, CompletionResult; | 17 show AnalysisRequest, CompletionRequest, CompletionResult; |
| 19 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; | 18 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; |
| 20 import 'package:analysis_server/src/services/completion/completion_manager.dart'
; | 19 import 'package:analysis_server/src/services/completion/completion_manager.dart'
; |
| 21 import 'package:analysis_server/src/services/completion/dart/completion_manager.
dart'; | 20 import 'package:analysis_server/src/services/completion/dart/completion_manager.
dart'; |
| 22 import 'package:analysis_server/src/services/completion/dart/contribution_sorter
.dart'; | 21 import 'package:analysis_server/src/services/completion/dart/contribution_sorter
.dart'; |
| (...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 886 } | 885 } |
| 887 '''); | 886 '''); |
| 888 await waitForTasksFinished(); | 887 await waitForTasksFinished(); |
| 889 Request request = | 888 Request request = |
| 890 new CompletionGetSuggestionsParams(testFile, 0).toRequest('0'); | 889 new CompletionGetSuggestionsParams(testFile, 0).toRequest('0'); |
| 891 Response response = handler.handleRequest(request); | 890 Response response = handler.handleRequest(request); |
| 892 expect(response.error, isNotNull); | 891 expect(response.error, isNotNull); |
| 893 expect(response.error.code, RequestErrorCode.NO_INDEX_GENERATED); | 892 expect(response.error.code, RequestErrorCode.NO_INDEX_GENERATED); |
| 894 } | 893 } |
| 895 } | 894 } |
| OLD | NEW |