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

Unified Diff: pkg/analysis_server/test/search/search_result_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/search_result_test.dart
diff --git a/pkg/analysis_server/test/search/search_result_test.dart b/pkg/analysis_server/test/search/search_result_test.dart
index 74dc0d505648bf083b97f27fc2c09ad6081b6141..a4cd492c6610b3fd0dabc67a0fe7182107842d46 100644
--- a/pkg/analysis_server/test/search/search_result_test.dart
+++ b/pkg/analysis_server/test/search/search_result_test.dart
@@ -10,64 +10,48 @@ import 'package:unittest/unittest.dart';
import '../reflective_tests.dart';
-
main() {
groupSep = ' | ';
runReflectiveTests(SearchResultKindTest);
}
-
@reflectiveTest
class SearchResultKindTest {
void test_fromEngine() {
- expect(
- newSearchResultKind_fromEngine(MatchKind.DECLARATION),
+ expect(newSearchResultKind_fromEngine(MatchKind.DECLARATION),
SearchResultKind.DECLARATION);
expect(
- newSearchResultKind_fromEngine(MatchKind.READ),
- SearchResultKind.READ);
- expect(
- newSearchResultKind_fromEngine(MatchKind.READ_WRITE),
+ newSearchResultKind_fromEngine(MatchKind.READ), SearchResultKind.READ);
+ expect(newSearchResultKind_fromEngine(MatchKind.READ_WRITE),
SearchResultKind.READ_WRITE);
- expect(
- newSearchResultKind_fromEngine(MatchKind.WRITE),
+ expect(newSearchResultKind_fromEngine(MatchKind.WRITE),
SearchResultKind.WRITE);
- expect(
- newSearchResultKind_fromEngine(MatchKind.REFERENCE),
+ expect(newSearchResultKind_fromEngine(MatchKind.REFERENCE),
SearchResultKind.REFERENCE);
- expect(
- newSearchResultKind_fromEngine(MatchKind.INVOCATION),
+ expect(newSearchResultKind_fromEngine(MatchKind.INVOCATION),
SearchResultKind.INVOCATION);
expect(newSearchResultKind_fromEngine(null), SearchResultKind.UNKNOWN);
}
void test_fromName() {
- expect(
- new SearchResultKind(SearchResultKind.DECLARATION.name),
+ expect(new SearchResultKind(SearchResultKind.DECLARATION.name),
SearchResultKind.DECLARATION);
- expect(
- new SearchResultKind(SearchResultKind.READ.name),
+ expect(new SearchResultKind(SearchResultKind.READ.name),
SearchResultKind.READ);
- expect(
- new SearchResultKind(SearchResultKind.READ_WRITE.name),
+ expect(new SearchResultKind(SearchResultKind.READ_WRITE.name),
SearchResultKind.READ_WRITE);
- expect(
- new SearchResultKind(SearchResultKind.WRITE.name),
+ expect(new SearchResultKind(SearchResultKind.WRITE.name),
SearchResultKind.WRITE);
- expect(
- new SearchResultKind(SearchResultKind.REFERENCE.name),
+ expect(new SearchResultKind(SearchResultKind.REFERENCE.name),
SearchResultKind.REFERENCE);
- expect(
- new SearchResultKind(SearchResultKind.INVOCATION.name),
+ expect(new SearchResultKind(SearchResultKind.INVOCATION.name),
SearchResultKind.INVOCATION);
- expect(
- new SearchResultKind(SearchResultKind.UNKNOWN.name),
+ expect(new SearchResultKind(SearchResultKind.UNKNOWN.name),
SearchResultKind.UNKNOWN);
}
void test_toString() {
- expect(
- SearchResultKind.DECLARATION.toString(),
+ expect(SearchResultKind.DECLARATION.toString(),
'SearchResultKind.DECLARATION');
}
}

Powered by Google App Engine
This is Rietveld 408576698