| Index: tests/compiler/dart2js/backend_dart/end2end_test.dart
|
| diff --git a/tests/compiler/dart2js/backend_dart/end2end_test.dart b/tests/compiler/dart2js/backend_dart/end2end_test.dart
|
| index 5f70f16caa3708b05bc2f5ae367947ac8df95db1..a2a25208928510c9d8715a1ac0196cf30ffc9d28 100644
|
| --- a/tests/compiler/dart2js/backend_dart/end2end_test.dart
|
| +++ b/tests/compiler/dart2js/backend_dart/end2end_test.dart
|
| @@ -16,20 +16,22 @@ import '../../../../pkg/analyzer2dart/test/end2end_data.dart';
|
| import 'test_helper.dart';
|
| import '../output_collector.dart';
|
|
|
| -main() {
|
| - performTests(TEST_DATA, asyncTester, (TestSpec result) {
|
| - OutputCollector outputCollector = new OutputCollector();
|
| - asyncTest(() => compilerFor(result.input, outputProvider: outputCollector)
|
| - .then((Compiler compiler) {
|
| - String expectedOutput = result.output.trim();
|
| - compiler.phase = Compiler.PHASE_COMPILING;
|
| - DartBackend backend = compiler.backend;
|
| - backend.assembleProgram();
|
| - String output = outputCollector.getOutput('', 'dart').trim();
|
| - Expect.equals(expectedOutput, output,
|
| - '\nInput:\n${result.input}\n'
|
| - 'Expected:\n$expectedOutput\n'
|
| - 'Actual:\n$output\n');
|
| - }));
|
| - });
|
| +main(List<String> args) {
|
| + performTests(TEST_DATA, asyncTester, runTest, args);
|
| +}
|
| +
|
| +runTest(TestSpec result) {
|
| + OutputCollector outputCollector = new OutputCollector();
|
| + asyncTest(() => compilerFor(result.input, outputProvider: outputCollector)
|
| + .then((Compiler compiler) {
|
| + String expectedOutput = result.output.trim();
|
| + compiler.phase = Compiler.PHASE_COMPILING;
|
| + DartBackend backend = compiler.backend;
|
| + backend.assembleProgram();
|
| + String output = outputCollector.getOutput('', 'dart').trim();
|
| + Expect.equals(expectedOutput, output,
|
| + '\nInput:\n${result.input}\n'
|
| + 'Expected:\n$expectedOutput\n'
|
| + 'Actual:\n$output\n');
|
| + }));
|
| }
|
|
|