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

Unified Diff: pkg/analysis_server/test/services/dependencies/library_dependencies_test.dart

Issue 2942433002: Cleanup some unused code in some of the tests (Closed)
Patch Set: Created 3 years, 6 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/dependencies/library_dependencies_test.dart
diff --git a/pkg/analysis_server/test/services/dependencies/library_dependencies_test.dart b/pkg/analysis_server/test/services/dependencies/library_dependencies_test.dart
index 157bd1da1514c8b580ab54582787bb0b1b46a144..1bede6311a578f2e161fa1ed9b6bb75540c92e49 100644
--- a/pkg/analysis_server/test/services/dependencies/library_dependencies_test.dart
+++ b/pkg/analysis_server/test/services/dependencies/library_dependencies_test.dart
@@ -26,10 +26,7 @@ class LibraryDependenciesTest extends AbstractContextTest {
provider.newFile('/lib5.dart', 'import "lib6.dart";');
provider.newFile('/lib6.dart', '');
- _performAnalysis();
-
- var libs =
- new LibraryDependencyCollector([context]).collectLibraryDependencies();
+ var libs = new LibraryDependencyCollector([]).collectLibraryDependencies();
// Cycles
expect(libs, contains('/lib1.dart'));
@@ -46,8 +43,4 @@ class LibraryDependenciesTest extends AbstractContextTest {
test_PackageMaps() {
//TODO(pquitslund): add test
}
-
- void _performAnalysis() {
- while (context.performAnalysisTask().hasMoreWork) {}
- }
}

Powered by Google App Engine
This is Rietveld 408576698