Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: pkg/analysis_server/test/edit/refactoring_test.dart

Issue 2868233003: Remove unnecessary tests (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
- }
-}
« no previous file with comments | « pkg/analysis_server/test/domain_completion_test.dart ('k') | pkg/analysis_server/test/search/element_references_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698