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

Unified Diff: pkg/front_end/test/fasta/bootstrap_test.dart

Issue 2721623002: Let parser handle factory modifiers. (Closed)
Patch Set: Handle factory modifiers correctly in dart2js. Created 3 years, 10 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: pkg/front_end/test/fasta/bootstrap_test.dart
diff --git a/pkg/front_end/test/fasta/bootstrap_test.dart b/pkg/front_end/test/fasta/bootstrap_test.dart
index 65bc2f81e6fc7c014ae44738a0c0c759bc67ce0f..8e23dee18e5d191e9f100e8216cc04ea5705bc4c 100644
--- a/pkg/front_end/test/fasta/bootstrap_test.dart
+++ b/pkg/front_end/test/fasta/bootstrap_test.dart
@@ -27,20 +27,17 @@ Future main() async {
Uri sourceCompiler = await Isolate.resolvePackageUri(
Uri.parse("package:front_end/src/fasta/bin/compile.dart"));
Uri packages = await Isolate.packageConfig;
+ Directory tmp = await Directory.systemTemp.createTemp("fasta_bootstrap");
+ Uri compiledOnceCompiler = tmp.uri.resolve("fasta1.dill");
+ Uri compiledTwiceCompiler = tmp.uri.resolve("fasta2.dill");
try {
- Directory tmp = await Directory.systemTemp.createTemp("fasta_bootstrap");
- Uri compiledOnceCompiler = tmp.uri.resolve("fasta1.dill");
- Uri compiledTwiceCompiler = tmp.uri.resolve("fasta2.dill");
- try {
- await runCompiler(sourceCompiler, sourceCompiler, compiledOnceCompiler);
- await runCompiler(
- compiledOnceCompiler, sourceCompiler, compiledTwiceCompiler);
- } finally {
- await tmp.delete(recursive: true);
- }
+ await runCompiler(sourceCompiler, sourceCompiler, compiledOnceCompiler);
+ await runCompiler(
+ compiledOnceCompiler, sourceCompiler, compiledTwiceCompiler);
} finally {
- asyncEnd();
+ await tmp.delete(recursive: true);
}
+ asyncEnd();
}
Future runCompiler(Uri compiler, Uri input, Uri output) async {
@@ -49,9 +46,11 @@ Future runCompiler(Uri compiler, Uri input, Uri output) async {
StdioProcess result = await StdioProcess.run(
dartVm.toFilePath(),
<String>[
+ "-c",
compiler.toFilePath(),
"--compile-sdk=${patchedSdk.toFilePath()}",
"--output=${output.toFilePath()}",
+ "--verify",
input.toFilePath(),
]);
print(result.output);

Powered by Google App Engine
This is Rietveld 408576698