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

Unified Diff: pkg/analysis_server/test/integration/analysis/occurrences_test.dart

Issue 725143004: Format and sort analyzer and analysis_server packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/integration/analysis/occurrences_test.dart
diff --git a/pkg/analysis_server/test/integration/analysis/occurrences_test.dart b/pkg/analysis_server/test/integration/analysis/occurrences_test.dart
index 413459b274888f27b28ad8a1f9a28b1b49e2784e..826b0615d8ab8c41507033721e0e68bbf752e237 100644
--- a/pkg/analysis_server/test/integration/analysis/occurrences_test.dart
+++ b/pkg/analysis_server/test/integration/analysis/occurrences_test.dart
@@ -10,12 +10,15 @@ import 'package:unittest/unittest.dart';
import '../../reflective_tests.dart';
import '../integration_tests.dart';
+main() {
+ runReflectiveTests(Test);
+}
+
@ReflectiveTestCase()
class Test extends AbstractAnalysisServerIntegrationTest {
test_occurrences() {
String pathname = sourcePath('test.dart');
- String text =
- r'''
+ String text = r'''
main() {
int sum = 0;
for (int i = 0; i < 10; i++) {
@@ -48,8 +51,8 @@ main() {
return null;
}
void check(String elementName, Iterable<String> expectedOccurrences) {
- Set<int> expectedOffsets = expectedOccurrences.map((String substring) =>
- text.indexOf(substring)).toSet();
+ Set<int> expectedOffsets =
+ expectedOccurrences.map((String substring) => text.indexOf(substring)).toSet();
Set<int> foundOffsets = findOffsets(elementName);
expect(foundOffsets, equals(expectedOffsets));
}
@@ -59,7 +62,3 @@ main() {
});
}
}
-
-main() {
- runReflectiveTests(Test);
-}

Powered by Google App Engine
This is Rietveld 408576698