Index: pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart |
diff --git a/pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart |
index 7851d496f56bc763de64144b5adbe97bc0dcd9c3..63a2a90b58df2460d51a495cc455a7064241d6f1 100644 |
--- a/pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart |
+++ b/pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart |
@@ -6,15 +6,17 @@ library test.services.completion.contributor.dart.local_lib; |
import 'package:analysis_server/src/provisional/completion/dart/completion_dart.dart'; |
import 'package:analysis_server/src/services/completion/dart/local_library_contributor.dart'; |
+import 'package:test/test.dart'; |
import 'package:test_reflective_loader/test_reflective_loader.dart'; |
-import 'package:unittest/unittest.dart'; |
import '../../../utils.dart'; |
import 'completion_contributor_util.dart'; |
main() { |
initializeTestEnvironment(); |
- defineReflectiveTests(LocalLibraryContributorTest); |
+ defineReflectiveSuite(() { |
+ defineReflectiveTests(LocalLibraryContributorTest); |
+ }); |
} |
@reflectiveTest |
@@ -102,7 +104,7 @@ class LocalLibraryContributorTest extends DartCompletionContributorTest { |
assertNotSuggested('m'); |
} |
- test_partFile_InstanceCreationExpression_variable_declaration_filter() async { |
+ test_partFile_InstanceCreationExpression_assignment_filter() async { |
// ConstructorName InstanceCreationExpression VariableDeclarationList |
addSource( |
'/testB.dart', |
@@ -123,7 +125,9 @@ class LocalLibraryContributorTest extends DartCompletionContributorTest { |
part "/testA.dart"; |
class Local { } |
main() { |
- A a = new ^ |
+ A a; |
+ // FAIL: |
+ a = new ^ |
} |
var m;'''); |
await computeLibrariesContaining(); |
@@ -155,7 +159,7 @@ class LocalLibraryContributorTest extends DartCompletionContributorTest { |
assertNotSuggested('m'); |
} |
- test_partFile_InstanceCreationExpression_assignment_filter() async { |
+ test_partFile_InstanceCreationExpression_variable_declaration_filter() async { |
// ConstructorName InstanceCreationExpression VariableDeclarationList |
addSource( |
'/testB.dart', |
@@ -176,9 +180,7 @@ class LocalLibraryContributorTest extends DartCompletionContributorTest { |
part "/testA.dart"; |
class Local { } |
main() { |
- A a; |
- // FAIL: |
- a = new ^ |
+ A a = new ^ |
} |
var m;'''); |
await computeLibrariesContaining(); |