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

Unified Diff: pkg/analysis_server/test/domain_completion_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
« no previous file with comments | « no previous file | pkg/analysis_server/test/edit/refactoring_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/domain_completion_test.dart
diff --git a/pkg/analysis_server/test/domain_completion_test.dart b/pkg/analysis_server/test/domain_completion_test.dart
index 0fd60c6031e7482398c19f714734f39b6b325bc6..e477ab2f12a1d726f1dcffd029a65d33d05e1b59 100644
--- a/pkg/analysis_server/test/domain_completion_test.dart
+++ b/pkg/analysis_server/test/domain_completion_test.dart
@@ -8,7 +8,6 @@ import 'dart:async';
import 'package:analysis_server/protocol/protocol.dart';
import 'package:analysis_server/protocol/protocol_generated.dart';
-import 'package:analysis_server/src/domain_completion.dart';
import 'package:analysis_server/src/plugin/plugin_manager.dart';
import 'package:analysis_server/src/provisional/completion/completion_core.dart';
import 'package:analysis_server/src/provisional/completion/dart/completion_dart.dart';
@@ -20,14 +19,12 @@ import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin;
import 'package:test/test.dart';
import 'package:test_reflective_loader/test_reflective_loader.dart';
-import 'analysis_abstract.dart';
import 'domain_completion_util.dart';
import 'mocks.dart' show pumpEventQueue;
main() {
defineReflectiveSuite(() {
defineReflectiveTests(CompletionDomainHandlerTest);
- defineReflectiveTests(_NoSearchEngine);
});
}
@@ -787,27 +784,3 @@ class MockRelevancySorter implements DartContributionSorter {
return new Future.value();
}
}
-
-@reflectiveTest
-class _NoSearchEngine extends AbstractAnalysisTest {
- @override
- void setUp() {
- super.setUp();
- createProject();
- handler = new CompletionDomainHandler(server);
- }
-
- test_noSearchEngine() async {
- addTestFile('''
-main() {
- ^
-}
- ''');
- await waitForTasksFinished();
- Request request =
- new CompletionGetSuggestionsParams(testFile, 0).toRequest('0');
- Response response = handler.handleRequest(request);
- expect(response.error, isNotNull);
- expect(response.error.code, RequestErrorCode.NO_INDEX_GENERATED);
- }
-}
« no previous file with comments | « no previous file | pkg/analysis_server/test/edit/refactoring_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698