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

Unified Diff: tests/compiler/dart2js/platform_consistency_test.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 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
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);
}
- }
+}
« no previous file with comments | « tests/compiler/dart2js/platform_config_parser_test.dart ('k') | tests/compiler/dart2js/preserve_uris_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698