Index: pkg/analysis_server/test/edit/refactoring_test.dart |
diff --git a/pkg/analysis_server/test/edit/refactoring_test.dart b/pkg/analysis_server/test/edit/refactoring_test.dart |
index eb52217e0f644050818c93e72f21961d413fa578..1790a28c5df762bdb058011ba4c21167a23e9fdd 100644 |
--- a/pkg/analysis_server/test/edit/refactoring_test.dart |
+++ b/pkg/analysis_server/test/edit/refactoring_test.dart |
@@ -29,7 +29,6 @@ main() { |
defineReflectiveTests(InlineMethodTest); |
defineReflectiveTests(MoveFileTest); |
defineReflectiveTests(RenameTest); |
- defineReflectiveTests(_NoSearchEngine); |
}); |
} |
@@ -2033,42 +2032,3 @@ class _AbstractGetRefactoring_Test extends AbstractAnalysisTest { |
server.handlers = [handler]; |
} |
} |
- |
-@reflectiveTest |
-class _NoSearchEngine extends _AbstractGetRefactoring_Test { |
- @override |
- Index createIndex() { |
- return null; |
- } |
- |
- test_getAvailableRefactorings() async { |
- addTestFile(''' |
-main() { |
- print(1 + 2); |
-} |
-'''); |
- await waitForTasksFinished(); |
- Request request = |
- new EditGetAvailableRefactoringsParams(testFile, 0, 0).toRequest('0'); |
- return _assertErrorResponseNoIndex(request); |
- } |
- |
- test_getRefactoring_noSearchEngine() async { |
- addTestFile(''' |
-main() { |
- print(1 + 2); |
-} |
-'''); |
- await waitForTasksFinished(); |
- Request request = new EditGetRefactoringParams( |
- RefactoringKind.EXTRACT_LOCAL_VARIABLE, testFile, 0, 0, true) |
- .toRequest('0'); |
- return _assertErrorResponseNoIndex(request); |
- } |
- |
- _assertErrorResponseNoIndex(Request request) async { |
- Response response = await serverChannel.sendRequest(request); |
- expect(response.error, isNotNull); |
- expect(response.error.code, RequestErrorCode.NO_INDEX_GENERATED); |
- } |
-} |