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

Unified Diff: tests/compiler/dart2js/serialization/compilation_test.dart

Issue 1967073002: Check closure data for serialization (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 7 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
« no previous file with comments | « pkg/compiler/lib/src/world.dart ('k') | tests/compiler/dart2js/serialization/equivalence_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/serialization/compilation_test.dart
diff --git a/tests/compiler/dart2js/serialization/compilation_test.dart b/tests/compiler/dart2js/serialization/compilation_test.dart
index e6601e198754ee2df059c3d94448b5f08cd74561..82d324752e715e61574b41ea512a8261701f6365 100644
--- a/tests/compiler/dart2js/serialization/compilation_test.dart
+++ b/tests/compiler/dart2js/serialization/compilation_test.dart
@@ -20,17 +20,19 @@ import '../output_collector.dart';
main(List<String> args) {
asyncTest(() async {
Arguments arguments = new Arguments.from(args);
- String serializedData = await serializeDartCore(
- arguments: arguments,
- serializeResolvedAst: true);
+ String serializedData = await serializeDartCore(arguments: arguments);
if (arguments.filename != null) {
Uri entryPoint = Uri.base.resolve(nativeToUriPath(arguments.filename));
await compile(serializedData, entryPoint, null);
} else {
Uri entryPoint = Uri.parse('memory:main.dart');
// TODO(johnniwinther): Handle the remaining tests.
- for (Test test in TESTS.sublist(0, 5)) {
+ int start = arguments.index ?? 0;
+ int end = arguments.index ?? 16/*TESTS.length - 1*/;
+ for (int index = start; index <= end; index++) {
+ Test test = TESTS[index];
await compile(serializedData, entryPoint, test,
+ index: index,
verbose: arguments.verbose);
}
}
@@ -38,11 +40,11 @@ main(List<String> args) {
}
Future compile(String serializedData, Uri entryPoint, Test test,
- {bool verbose: false}) async {
+ {int index, bool verbose: false}) async {
String testDescription =
test != null ? test.sourceFiles[entryPoint.path] : '${entryPoint}';
print('------------------------------------------------------------------');
- print('compile ${testDescription}');
+ print('compile ${index != null ? '$index:' :''}${testDescription}');
print('------------------------------------------------------------------');
OutputCollector outputCollector = new OutputCollector();
await runCompiler(
@@ -51,7 +53,7 @@ Future compile(String serializedData, Uri entryPoint, Test test,
options: [],
outputProvider: outputCollector,
beforeRun: (Compiler compiler) {
- deserialize(compiler, serializedData, deserializeResolvedAst: true);
+ deserialize(compiler, serializedData);
});
if (verbose) {
print(outputCollector.getOutput('', 'js'));
« no previous file with comments | « pkg/compiler/lib/src/world.dart ('k') | tests/compiler/dart2js/serialization/equivalence_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698