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

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

Issue 2296723003: Handle html+mirrors (Closed)
Patch Set: Created 4 years, 4 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/js_backend/backend.dart ('k') | tests/compiler/dart2js/serialization/helper.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_helper.dart
diff --git a/tests/compiler/dart2js/serialization/compilation_test_helper.dart b/tests/compiler/dart2js/serialization/compilation_test_helper.dart
index 0a44ce2e428c33bf95d17dd7886fce7a46a75e51..e1d43712887c5e38f7dbf0d67fa6174582be2e53 100644
--- a/tests/compiler/dart2js/serialization/compilation_test_helper.dart
+++ b/tests/compiler/dart2js/serialization/compilation_test_helper.dart
@@ -26,10 +26,13 @@ main(List<String> args) {
await serializeDartCore(arguments: arguments);
if (arguments.filename != null) {
Uri entryPoint = Uri.base.resolve(nativeToUriPath(arguments.filename));
+ SerializationResult result = await serialize(entryPoint,
+ memorySourceFiles: serializedData.toMemorySourceFiles(),
+ resolutionInputs: serializedData.toUris());
await compile(
entryPoint,
- resolutionInputs: serializedData.toUris(),
- sourceFiles: serializedData.toMemorySourceFiles());
+ resolutionInputs: result.serializedData.toUris(),
+ sourceFiles: result.serializedData.toMemorySourceFiles());
} else {
Uri entryPoint = Uri.parse('memory:main.dart');
await arguments.forEachTest(serializedData, TESTS, compile);
@@ -51,7 +54,7 @@ Future compile(
OutputCollector outputCollector = new OutputCollector();
await measure(title, 'compile', () async {
List<String> options = [];
- if (test.checkedMode) {
+ if (test != null && test.checkedMode) {
options.add(Flags.enableCheckedMode);
}
await runCompiler(
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | tests/compiler/dart2js/serialization/helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698