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

Unified Diff: pkg/analysis_server/test/services/completion/dart/local_library_contributor_test.dart

Issue 2394683006: Switch analysis_server to use 'package:test'. (Closed)
Patch Set: Created 4 years, 2 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/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();

Powered by Google App Engine
This is Rietveld 408576698