Index: tests/compiler/dart2js/platform_consistency_test.dart |
diff --git a/tests/compiler/dart2js/platform_consistency_test.dart b/tests/compiler/dart2js/platform_consistency_test.dart |
index fa50b290c7c4d0bc8db20fcb7ca0e7bd7db6e508..5d6e6381b3135976c47d870530fccbefb4cd212e 100644 |
--- a/tests/compiler/dart2js/platform_consistency_test.dart |
+++ b/tests/compiler/dart2js/platform_consistency_test.dart |
@@ -7,30 +7,27 @@ import "package:compiler/src/source_file_provider.dart"; |
import "package:compiler/compiler_new.dart"; |
import "package:expect/expect.dart"; |
-Uri unsupported = Uri.parse("unsupported:"); |
+Uri unsupported = Uri.parse("unsupported:"); |
main() async { |
CompilerInput input = new CompilerSourceFileProvider(); |
- Map<String, Uri> client = await load( |
- Uri.base.resolve("sdk/lib/dart_client.platform"), |
- input); |
- Map<String, Uri> server = await load( |
- Uri.base.resolve("sdk/lib/dart_server.platform"), |
- input); |
- Map<String, Uri> shared = await load( |
- Uri.base.resolve("sdk/lib/dart_shared.platform"), |
- input); |
+ Map<String, Uri> client = |
+ await load(Uri.base.resolve("sdk/lib/dart_client.platform"), input); |
+ Map<String, Uri> server = |
+ await load(Uri.base.resolve("sdk/lib/dart_server.platform"), input); |
+ Map<String, Uri> shared = |
+ await load(Uri.base.resolve("sdk/lib/dart_shared.platform"), input); |
Expect.setEquals(new Set.from(shared.keys), new Set.from(client.keys)); |
Expect.setEquals(new Set.from(shared.keys), new Set.from(server.keys)); |
for (String libraryName in shared.keys) { |
test(Map<String, Uri> m) { |
- if (m[libraryName] != unsupported && |
- shared[libraryName] != unsupported) { |
+ if (m[libraryName] != unsupported && shared[libraryName] != unsupported) { |
Expect.equals(shared[libraryName], m[libraryName]); |
} |
} |
+ |
test(client); |
test(server); |
} |
- } |
+} |