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"); |
-} |
+} |