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

Unified Diff: pkg/analysis_server/test/search/type_hierarchy_test.dart

Issue 2286923002: Convert analysis server over to use ContextBuilder (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: address comment, fix bugs, clean-up Created 4 years, 4 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
« no previous file with comments | « pkg/analysis_server/test/mock_sdk.dart ('k') | pkg/analyzer/lib/file_system/file_system.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'], [])
« no previous file with comments | « pkg/analysis_server/test/mock_sdk.dart ('k') | pkg/analyzer/lib/file_system/file_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698