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

Unified Diff: pkg/analysis_server/test/services/search/search_engine_test.dart

Issue 1769063002: Remove SearchEngine.searchElementDeclarations(). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 | « pkg/analysis_server/test/services/search/search_engine2_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/search/search_engine_test.dart
diff --git a/pkg/analysis_server/test/services/search/search_engine_test.dart b/pkg/analysis_server/test/services/search/search_engine_test.dart
index b41093f3b7bc09730e7cb30f1328eca414749665..c4e757c8f9773747ff53a3442a9369c860f0dd59 100644
--- a/pkg/analysis_server/test/services/search/search_engine_test.dart
+++ b/pkg/analysis_server/test/services/search/search_engine_test.dart
@@ -95,31 +95,6 @@ class C implements B {}
});
}
- Future test_searchElementDeclarations() {
- _indexTestUnit('''
-class A {
- test() {}
-}
-class B {
- int test = 1;
- main() {
- int test = 2;
- }
-}
-''');
- ClassElement elementA = findElement('A');
- ClassElement elementB = findElement('B');
- Element element_test = findElement('test', ElementKind.LOCAL_VARIABLE);
- var expected = [
- _expectId(elementA.methods[0], MatchKind.DECLARATION, 'test() {}'),
- _expectId(elementB.fields[0], MatchKind.DECLARATION, 'test = 1;'),
- _expectId(element_test, MatchKind.DECLARATION, 'test = 2;'),
- ];
- return searchEngine.searchElementDeclarations('test').then((matches) {
- _assertMatches(matches, expected);
- });
- }
-
Future test_searchMemberDeclarations() {
_indexTestUnit('''
class A {
« no previous file with comments | « pkg/analysis_server/test/services/search/search_engine2_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698