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

Unified Diff: pkg/analysis_server/test/services/index/dart_index_contributor_test.dart

Issue 946023003: Fix for searching constructor references. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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/services/index/dart_index_contributor_test.dart
diff --git a/pkg/analysis_server/test/services/index/dart_index_contributor_test.dart b/pkg/analysis_server/test/services/index/dart_index_contributor_test.dart
index 9d2daccb9762e2ea1391c48a07bbf4a3c0c9208e..f920f25a253f636a2af5188dea97159cd82c3e85 100644
--- a/pkg/analysis_server/test/services/index/dart_index_contributor_test.dart
+++ b/pkg/analysis_server/test/services/index/dart_index_contributor_test.dart
@@ -164,29 +164,6 @@ main() {
_expectedLocation(mainElement, 'v in []'));
}
- void test_isDefinedBy_ConstructorElement() {
- _indexTestUnit('''
-class A {
- A() {}
- A.foo() {}
-}''');
- // prepare elements
- ClassElement classA = findElement("A");
- ConstructorElement consA =
- findNodeElementAtString("A()", (node) => node is ConstructorDeclaration);
- ConstructorElement consA_foo =
- findNodeElementAtString("A.foo()", (node) => node is ConstructorDeclaration);
- // verify
- _assertRecordedRelation(
- consA,
- IndexConstants.NAME_IS_DEFINED_BY,
- _expectedLocation(classA, '() {}'));
- _assertRecordedRelation(
- consA_foo,
- IndexConstants.NAME_IS_DEFINED_BY,
- _expectedLocation(classA, '.foo() {}', length: 4));
- }
-
void test_isDefinedBy_NameElement_method() {
_indexTestUnit('''
class A {

Powered by Google App Engine
This is Rietveld 408576698