Index: pkg/analysis_server/test/search/type_hierarchy_test.dart |
diff --git a/pkg/analysis_server/test/search/type_hierarchy_test.dart b/pkg/analysis_server/test/search/type_hierarchy_test.dart |
index 0dfc89298d11c9bb36c0c5493518790b574d905a..c3efbbfe5fec58e0ff9af6067b475f53de0b17b9 100644 |
--- a/pkg/analysis_server/test/search/type_hierarchy_test.dart |
+++ b/pkg/analysis_server/test/search/type_hierarchy_test.dart |
@@ -33,7 +33,9 @@ class GetTypeHierarchyTest extends AbstractAnalysisTest { |
void setUp() { |
super.setUp(); |
createProject(); |
- server.handlers = [new SearchDomainHandler(server),]; |
+ server.handlers = [ |
+ new SearchDomainHandler(server), |
+ ]; |
} |
test_bad_function() async { |
@@ -168,7 +170,7 @@ class CCC extends BBB implements AAA {} |
test_class_extends_fileAndPackageUris() async { |
// prepare packages |
- String pkgFile = '/packages/pkgA/libA.dart'; |
+ String pkgFile = '/packages/pkgA/lib/libA.dart'; |
resourceProvider.newFile( |
pkgFile, |
''' |
@@ -176,14 +178,16 @@ library lib_a; |
class A {} |
class B extends A {} |
'''); |
- packageMapProvider.packageMap['pkgA'] = [ |
- resourceProvider.getResource('/packages/pkgA') |
- ]; |
+ resourceProvider.newFile( |
+ '/packages/pkgA/.packages', 'pkgA:file:///packages/pkgA/lib'); |
// reference the package from a project |
+ resourceProvider.newFile( |
+ '$projectPath/.packages', 'pkgA:file:///packages/pkgA/lib'); |
addTestFile(''' |
import 'package:pkgA/libA.dart'; |
class C extends A {} |
'''); |
+ await waitForTasksFinished(); |
// configure roots |
Request request = |
new AnalysisSetAnalysisRootsParams([projectPath, '/packages/pkgA'], []) |