Index: tests/compiler/dart2js/serialization_resolved_ast_test.dart |
diff --git a/tests/compiler/dart2js/serialization_resolved_ast_test.dart b/tests/compiler/dart2js/serialization_resolved_ast_test.dart |
index af5d8a35c0835df87fedd9cebcc2253f007791e7..7712f9a44a1e64b061b1471c560149ea654ecbd1 100644 |
--- a/tests/compiler/dart2js/serialization_resolved_ast_test.dart |
+++ b/tests/compiler/dart2js/serialization_resolved_ast_test.dart |
@@ -20,11 +20,13 @@ import 'serialization_test_data.dart'; |
import 'serialization_test_helper.dart'; |
-main(List<String> arguments) { |
+main(List<String> args) { |
+ Arguments arguments = new Arguments.from(args); |
asyncTest(() async { |
- String serializedData = await serializeDartCore(serializeResolvedAst: true); |
- if (arguments.isNotEmpty) { |
- Uri entryPoint = Uri.base.resolve(nativeToUriPath(arguments.last)); |
+ String serializedData = await serializeDartCore( |
+ arguments: arguments, serializeResolvedAst: true); |
+ if (arguments.filename != null) { |
+ Uri entryPoint = Uri.base.resolve(nativeToUriPath(arguments.filename)); |
await check(serializedData, entryPoint); |
} else { |
Uri entryPoint = Uri.parse('memory:main.dart'); |
@@ -43,13 +45,13 @@ Future check( |
Compiler compilerNormal = compilerFor( |
memorySourceFiles: sourceFiles, |
- options: [Flags.analyzeOnly]); |
+ options: [Flags.analyzeAll]); |
compilerNormal.resolution.retainCachesForTesting = true; |
await compilerNormal.run(entryPoint); |
Compiler compilerDeserialized = compilerFor( |
memorySourceFiles: sourceFiles, |
- options: [Flags.analyzeOnly]); |
+ options: [Flags.analyzeAll]); |
compilerDeserialized.resolution.retainCachesForTesting = true; |
deserialize( |
compilerDeserialized, serializedData, deserializeResolvedAst: true); |
@@ -69,7 +71,7 @@ void checkAllResolvedAsts( |
return compiler1.resolution.hasResolvedAst(member1); |
}, |
checkResolvedAsts, |
- verbose: true); |
+ verbose: verbose); |
} |