Index: pkg/analysis_server/test/search/top_level_declarations_test.dart |
diff --git a/pkg/analysis_server/test/search/top_level_declarations_test.dart b/pkg/analysis_server/test/search/top_level_declarations_test.dart |
index 8b1829c8e2e7a7af7e115e8e8f1febd268c75241..17d18828851dd675626f6dd44d2fa8e1faec7e20 100644 |
--- a/pkg/analysis_server/test/search/top_level_declarations_test.dart |
+++ b/pkg/analysis_server/test/search/top_level_declarations_test.dart |
@@ -7,15 +7,17 @@ library test.search.top_level_declarations; |
import 'dart:async'; |
import 'package:analysis_server/plugin/protocol/protocol.dart'; |
+import 'package:test/test.dart'; |
import 'package:test_reflective_loader/test_reflective_loader.dart'; |
-import 'package:unittest/unittest.dart'; |
import '../utils.dart'; |
import 'abstract_search_domain.dart'; |
main() { |
initializeTestEnvironment(); |
- defineReflectiveTests(TopLevelDeclarationsTest); |
+ defineReflectiveSuite(() { |
+ defineReflectiveTests(TopLevelDeclarationsTest); |
+ }); |
} |
@reflectiveTest |
@@ -57,6 +59,11 @@ class TopLevelDeclarationsTest extends AbstractSearchDomainTest { |
return null; |
} |
+ test_invalidRegex() async { |
+ var result = await findTopLevelDeclarations('[A'); |
+ expect(result, new isInstanceOf<RequestError>()); |
+ } |
+ |
test_startEndPattern() async { |
addTestFile(''' |
class A {} // A |
@@ -74,9 +81,4 @@ class ABC {} |
assertHasDeclaration(ElementKind.TOP_LEVEL_VARIABLE, 'E'); |
assertNoDeclaration(ElementKind.CLASS, 'ABC'); |
} |
- |
- test_invalidRegex() async { |
- var result = await findTopLevelDeclarations('[A'); |
- expect(result, new isInstanceOf<RequestError>()); |
- } |
} |