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

Unified Diff: pkg/analysis_server/test/search/element_references_test.dart

Issue 969113002: Reformat (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/search/element_references_test.dart
diff --git a/pkg/analysis_server/test/search/element_references_test.dart b/pkg/analysis_server/test/search/element_references_test.dart
index 7bcba7b617cb8ab042a910f58a1a59550263580f..bf27ea8c0b083d590890adf35aac7bcd12ab4795 100644
--- a/pkg/analysis_server/test/search/element_references_test.dart
+++ b/pkg/analysis_server/test/search/element_references_test.dart
@@ -13,14 +13,12 @@ import 'package:unittest/unittest.dart';
import '../reflective_tests.dart';
import 'abstract_search_domain.dart';
-
main() {
groupSep = ' | ';
runReflectiveTests(ElementReferencesTest);
runReflectiveTests(_NoSearchEngine);
}
-
@reflectiveTest
class ElementReferencesTest extends AbstractSearchDomainTest {
Element searchElement;
@@ -34,9 +32,7 @@ class ElementReferencesTest extends AbstractSearchDomainTest {
int offset = findOffset(search);
await waitForTasksFinished();
Request request = new SearchFindElementReferencesParams(
- testFile,
- offset,
- includePotential).toRequest('0');
+ testFile, offset, includePotential).toRequest('0');
Response response = await waitResponse(request);
var result = new SearchFindElementReferencesResult.fromResponse(response);
searchId = result.id;
@@ -409,17 +405,9 @@ fff(p) {}
expect(searchElement.kind, ElementKind.FUNCTION);
expect(results, hasLength(2));
findResult(
- SearchResultKind.INVOCATION,
- pathA,
- codeA.indexOf('fff(1)'),
- 3,
- true);
+ SearchResultKind.INVOCATION, pathA, codeA.indexOf('fff(1)'), 3, true);
findResult(
- SearchResultKind.INVOCATION,
- pathB,
- codeB.indexOf('fff(2)'),
- 3,
- true);
+ SearchResultKind.INVOCATION, pathB, codeB.indexOf('fff(2)'), 3, true);
}
test_oneUnit_zeroLibraries() async {
@@ -709,7 +697,6 @@ class A<T> {
}
}
-
@reflectiveTest
class _NoSearchEngine extends AbstractSearchDomainTest {
@override
@@ -724,8 +711,8 @@ main() {
print(vvv);
}
''');
- Request request =
- new SearchFindElementReferencesParams(testFile, 0, false).toRequest('0');
+ Request request = new SearchFindElementReferencesParams(testFile, 0, false)
+ .toRequest('0');
Response response = await waitResponse(request);
expect(response.error, isNotNull);
expect(response.error.code, RequestErrorCode.NO_INDEX_GENERATED);

Powered by Google App Engine
This is Rietveld 408576698