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

Unified Diff: pkg/analysis_server/test/services/completion/dart/completion_manager_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/completion_manager_test.dart
diff --git a/pkg/analysis_server/test/services/completion/dart/completion_manager_test.dart b/pkg/analysis_server/test/services/completion/dart/completion_manager_test.dart
index b678bd197f6f817f20ba2d9f5aeaeb7ccf6dd4d9..4574c22853e655c7cf6c4d380aa961ebaa9e68ff 100644
--- a/pkg/analysis_server/test/services/completion/dart/completion_manager_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/completion_manager_test.dart
@@ -13,15 +13,17 @@ import 'package:analysis_server/src/services/completion/dart/completion_manager.
import 'package:analysis_server/src/services/completion/dart/imported_reference_contributor.dart';
import 'package:analyzer/dart/element/element.dart';
import 'package:analyzer/src/task/dart.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(CompletionManagerTest);
+ defineReflectiveSuite(() {
+ defineReflectiveTests(CompletionManagerTest);
+ });
}
@reflectiveTest
@@ -91,6 +93,7 @@ part '$testFile';
fail('Failed to find $expectedUri in $importedNames');
});
}
+
void assertImportedLib(String expectedUri) {
ImportElement importElem = importNamed(expectedUri);
expect(importElem.importedLibrary.exportNamespace, isNotNull);

Powered by Google App Engine
This is Rietveld 408576698