| 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/completion/completion_core.dart' |
| 10 show CompletionRequest; |
| 9 import 'package:analysis_server/src/analysis_server.dart'; | 11 import 'package:analysis_server/src/analysis_server.dart'; |
| 10 import 'package:analysis_server/src/channel/channel.dart'; | 12 import 'package:analysis_server/src/channel/channel.dart'; |
| 11 import 'package:analysis_server/src/constants.dart'; | 13 import 'package:analysis_server/src/constants.dart'; |
| 12 import 'package:analysis_server/src/domain_analysis.dart'; | 14 import 'package:analysis_server/src/domain_analysis.dart'; |
| 13 import 'package:analysis_server/src/domain_completion.dart'; | 15 import 'package:analysis_server/src/domain_completion.dart'; |
| 14 import 'package:analysis_server/src/protocol.dart'; | 16 import 'package:analysis_server/src/protocol.dart'; |
| 15 import 'package:analysis_server/src/services/completion/completion_manager.dart'
; | 17 import 'package:analysis_server/src/services/completion/completion_manager.dart'
; |
| 16 import 'package:analysis_server/src/services/completion/dart_completion_manager.
dart'; | 18 import 'package:analysis_server/src/services/completion/dart_completion_manager.
dart'; |
| 17 import 'package:analysis_server/src/services/index/index.dart' show Index; | 19 import 'package:analysis_server/src/services/index/index.dart' show Index; |
| 18 import 'package:analysis_server/src/services/index/local_memory_index.dart'; | 20 import 'package:analysis_server/src/services/index/local_memory_index.dart'; |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 } | 712 } |
| 711 '''); | 713 '''); |
| 712 await waitForTasksFinished(); | 714 await waitForTasksFinished(); |
| 713 Request request = | 715 Request request = |
| 714 new CompletionGetSuggestionsParams(testFile, 0).toRequest('0'); | 716 new CompletionGetSuggestionsParams(testFile, 0).toRequest('0'); |
| 715 Response response = handler.handleRequest(request); | 717 Response response = handler.handleRequest(request); |
| 716 expect(response.error, isNotNull); | 718 expect(response.error, isNotNull); |
| 717 expect(response.error.code, RequestErrorCode.NO_INDEX_GENERATED); | 719 expect(response.error.code, RequestErrorCode.NO_INDEX_GENERATED); |
| 718 } | 720 } |
| 719 } | 721 } |
| OLD | NEW |