| Index: pkg/analysis_server/test/integration/analysis/package_root_test.dart
|
| diff --git a/pkg/analysis_server/test/integration/analysis/package_root_test.dart b/pkg/analysis_server/test/integration/analysis/package_root_test.dart
|
| index df26ee9d38a8eb487cc901663594c1af71cbf9ba..d2a7800eac46746cf1e5c22c20e3f4fdd3c487a4 100644
|
| --- a/pkg/analysis_server/test/integration/analysis/package_root_test.dart
|
| +++ b/pkg/analysis_server/test/integration/analysis/package_root_test.dart
|
| @@ -11,6 +11,10 @@ import 'package:unittest/unittest.dart';
|
| import '../../reflective_tests.dart';
|
| import '../integration_tests.dart';
|
|
|
| +main() {
|
| + runReflectiveTests(Test);
|
| +}
|
| +
|
| @ReflectiveTestCase()
|
| class Test extends AbstractAnalysisServerIntegrationTest {
|
| test_package_root() {
|
| @@ -35,14 +39,17 @@ f() {}
|
| writeFile(mainPath, mainText);
|
| String normalizedFooBarPath = writeFile(fooBarPath, fooBarText);
|
| sendServerSetSubscriptions([ServerService.STATUS]);
|
| - sendAnalysisSetSubscriptions({AnalysisService.NAVIGATION: [mainPath]});
|
| + sendAnalysisSetSubscriptions({
|
| + AnalysisService.NAVIGATION: [mainPath]
|
| + });
|
| List<NavigationRegion> navigationRegions;
|
| onAnalysisNavigation.listen((AnalysisNavigationParams params) {
|
| expect(params.file, equals(mainPath));
|
| navigationRegions = params.regions;
|
| });
|
| - sendAnalysisSetAnalysisRoots([projPath], [],
|
| - packageRoots: {projPath: packagesPath});
|
| + sendAnalysisSetAnalysisRoots([projPath], [], packageRoots: {
|
| + projPath: packagesPath
|
| + });
|
| return analysisFinished.then((_) {
|
| // Verify that fooBarPath was properly resolved by checking that f()
|
| // refers to it.
|
| @@ -61,7 +68,3 @@ f() {}
|
| });
|
| }
|
| }
|
| -
|
| -main() {
|
| - runReflectiveTests(Test);
|
| -}
|
|
|