| Index: pkg/analysis_server/test/domain_analysis_test.dart
|
| diff --git a/pkg/analysis_server/test/domain_analysis_test.dart b/pkg/analysis_server/test/domain_analysis_test.dart
|
| index d44561b410755abcddc9cfba828f397e86e1f81a..35e95371bada421787243822e23d6414a2297cf2 100644
|
| --- a/pkg/analysis_server/test/domain_analysis_test.dart
|
| +++ b/pkg/analysis_server/test/domain_analysis_test.dart
|
| @@ -9,6 +9,7 @@ import 'dart:async';
|
| import 'package:analysis_server/plugin/protocol/protocol.dart';
|
| import 'package:analysis_server/src/analysis_server.dart';
|
| import 'package:analysis_server/src/constants.dart';
|
| +import 'package:analysis_server/src/context_manager.dart';
|
| import 'package:analysis_server/src/domain_analysis.dart';
|
| import 'package:analysis_server/src/plugin/server_plugin.dart';
|
| import 'package:analyzer/file_system/file_system.dart';
|
| @@ -386,40 +387,6 @@ class AnalysisDomainTest extends AbstractAnalysisTest {
|
| }
|
| }
|
|
|
| - test_packageMapDependencies() async {
|
| - // Prepare a source file that has errors because it refers to an unknown
|
| - // package.
|
| - String pkgFile = '/packages/pkgA/libA.dart';
|
| - resourceProvider.newFile(
|
| - pkgFile,
|
| - '''
|
| -library lib_a;
|
| -class A {}
|
| -''');
|
| - addTestFile('''
|
| -import 'package:pkgA/libA.dart';
|
| -f(A a) {
|
| -}
|
| -''');
|
| - String pkgDependency = posix.join(projectPath, 'package_dep');
|
| - resourceProvider.newFile(pkgDependency, 'contents');
|
| - packageMapProvider.dependencies.add(pkgDependency);
|
| - // Create project and wait for analysis
|
| - createProject();
|
| - await waitForTasksFinished();
|
| - expect(filesErrors[testFile], isNotEmpty);
|
| - // Add the package to the package map and tickle the package dependency.
|
| - packageMapProvider.packageMap = {
|
| - 'pkgA': <Folder>[resourceProvider.getResource('/packages/pkgA')]
|
| - };
|
| - resourceProvider.modifyFile(pkgDependency, 'new contents');
|
| - // Give the server time to notice the file has changed, then let
|
| - // analysis complete. There should now be no error.
|
| - await pumpEventQueue();
|
| - await waitForTasksFinished();
|
| - expect(filesErrors[testFile], isEmpty);
|
| - }
|
| -
|
| test_setRoots_packages() {
|
| // prepare package
|
| String pkgFile = '/packages/pkgA/libA.dart';
|
|
|