| 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);
|
| -}
|
|
|