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

Unified Diff: pkg/analysis_server/test/source/caching_put_package_map_provider_test.dart

Issue 1855643002: More strong mode changes to analysis_server (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Backout changes to options file Created 4 years, 9 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/services/linter/linter_test.dart ('k') | pkg/analyzer/lib/src/codegen/tools.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « pkg/analysis_server/test/services/linter/linter_test.dart ('k') | pkg/analyzer/lib/src/codegen/tools.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698