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

Unified Diff: tests/compiler/dart2js/serialization/library_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/serialization/library_test.dart
diff --git a/tests/compiler/dart2js/serialization/library_test.dart b/tests/compiler/dart2js/serialization/library_test.dart
index 840cd78a8fa3b5fa8909442946aeb2b78f472289..2334ac6d2d3118c94d9839504f327edda3db2f30 100644
--- a/tests/compiler/dart2js/serialization/library_test.dart
+++ b/tests/compiler/dart2js/serialization/library_test.dart
@@ -53,24 +53,18 @@ main(List<String> arguments) {
entryPoint = Uris.dart_core;
}
asyncTest(() async {
- Compiler compiler = await compilerFor(
- entryPoint: entryPoint, options: [Flags.analyzeAll]);
+ Compiler compiler =
+ await compilerFor(entryPoint: entryPoint, options: [Flags.analyzeAll]);
compiler.serialization.supportSerialization = true;
await compiler.run(entryPoint);
- List<SerializedData> data =
- createData(compiler,
- outPath: outPath,
- prettyPrint: prettyPrint,
- shardCount: shardCount);
+ List<SerializedData> data = createData(compiler,
+ outPath: outPath, prettyPrint: prettyPrint, shardCount: shardCount);
await testAnalysis(compiler, data, entryPoint);
});
}
-List<SerializedData> createData(
- Compiler compiler,
- {String outPath,
- bool prettyPrint,
- int shardCount: 3}) {
+List<SerializedData> createData(Compiler compiler,
+ {String outPath, bool prettyPrint, int shardCount: 3}) {
Iterable<LibraryElement> libraries1 = compiler.libraryLoader.libraries;
if (shardCount < 1 || shardCount > libraries1.length) {
shardCount = libraries1.length;
@@ -92,8 +86,7 @@ List<SerializedData> createData(
List<SerializedData> data = <SerializedData>[];
for (int shard = 0; shard < shardCount; shard++) {
List<LibraryElement> libraries = librarySplits[shard];
- Serializer serializer =
- compiler.serialization.createSerializer(libraries);
+ Serializer serializer = compiler.serialization.createSerializer(libraries);
String text = serializer.toText(const JsonSerializationEncoder());
String outText = text;
if (prettyPrint) {
@@ -117,9 +110,7 @@ List<SerializedData> createData(
}
Future testAnalysis(
- Compiler compiler1,
- List<SerializedData> data,
- Uri entryPoint) async {
+ Compiler compiler1, List<SerializedData> data, Uri entryPoint) async {
Map<String, String> memorySourceFiles = <String, String>{};
List<Uri> resolutionInputs = <Uri>[];
for (int index = 0; index < data.length; index++) {
@@ -144,4 +135,4 @@ Future testAnalysis(
checkAllImpacts(compiler1, compiler2);
}
Expect.isFalse(compiler2.reporter.hasReportedError, "Unexpected errors");
-}
+}
« no previous file with comments | « tests/compiler/dart2js/serialization/impact_test.dart ('k') | tests/compiler/dart2js/serialization/members_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698