| Index: pkg/analysis_server/test/source/caching_put_package_map_provider_test.dart
|
| diff --git a/pkg/analysis_server/test/source/caching_put_package_map_provider_test.dart b/pkg/analysis_server/test/source/caching_put_package_map_provider_test.dart
|
| index 9aa321b2a077287b2253917c0b34466efb4dc636..98f1165add0356b67243bf820ba4eda14a0db7bb 100644
|
| --- a/pkg/analysis_server/test/source/caching_put_package_map_provider_test.dart
|
| +++ b/pkg/analysis_server/test/source/caching_put_package_map_provider_test.dart
|
| @@ -45,7 +45,7 @@ main() {
|
| packages.forEach((String name, String path) {
|
| resProvider.newFolder(path);
|
| });
|
| - List<String> inputFiles = result['input_files'];
|
| + List<String> inputFiles = result['input_files'] as List<String>;
|
| for (String path in inputFiles) {
|
| resProvider.newFile(path, '');
|
| }
|
| @@ -282,7 +282,7 @@ main() {
|
|
|
| _assertError(PackageMapInfo info, Map expected) {
|
| expect(info.packageMap, isNull);
|
| - List<String> expectedFiles = expected['input_files'];
|
| + List<String> expectedFiles = expected['input_files'] as List<String>;
|
| expect(info.dependencies, hasLength(expectedFiles.length));
|
| for (String path in expectedFiles) {
|
| expect(info.dependencies, contains(path));
|
| @@ -290,14 +290,15 @@ _assertError(PackageMapInfo info, Map expected) {
|
| }
|
|
|
| _assertInfo(PackageMapInfo info, Map expected) {
|
| - Map<String, String> expectedPackages = expected['packages'];
|
| + Map<String, String> expectedPackages =
|
| + expected['packages'] as Map<String, String>;
|
| expect(info.packageMap, hasLength(expectedPackages.length));
|
| for (String key in expectedPackages.keys) {
|
| List<Folder> packageList = info.packageMap[key];
|
| expect(packageList, hasLength(1));
|
| expect(packageList[0].path, expectedPackages[key]);
|
| }
|
| - List<String> expectedFiles = expected['input_files'];
|
| + List<String> expectedFiles = expected['input_files'] as List<String>;
|
| expect(info.dependencies, hasLength(expectedFiles.length));
|
| for (String path in expectedFiles) {
|
| expect(info.dependencies, contains(path));
|
|
|