| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library dart_backend.test_helper; | 5 library dart_backend.test_helper; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'package:async_helper/async_helper.dart'; | 8 import 'package:async_helper/async_helper.dart'; |
| 9 import 'package:compiler/src/dart2jslib.dart'; | 9 import 'package:compiler/src/dart2jslib.dart'; |
| 10 import '../../../../pkg/analyzer2dart/test/test_helper.dart'; | 10 import '../../../../pkg/analyzer2dart/test/test_helper.dart'; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 if (element == null) return null; | 24 if (element == null) return null; |
| 25 | 25 |
| 26 compiler.mainFunction = element; | 26 compiler.mainFunction = element; |
| 27 compiler.phase = Compiler.PHASE_RESOLVING; | 27 compiler.phase = Compiler.PHASE_RESOLVING; |
| 28 compiler.backend.enqueueHelpers(compiler.enqueuer.resolution, | 28 compiler.backend.enqueueHelpers(compiler.enqueuer.resolution, |
| 29 compiler.globalDependencies); | 29 compiler.globalDependencies); |
| 30 compiler.processQueue(compiler.enqueuer.resolution, element); | 30 compiler.processQueue(compiler.enqueuer.resolution, element); |
| 31 compiler.world.populate(); | 31 compiler.world.populate(); |
| 32 compiler.backend.onResolutionComplete(); | 32 compiler.backend.onResolutionComplete(); |
| 33 | 33 |
| 34 compiler.irBuilder.buildNodes(useNewBackend: true); | 34 compiler.irBuilder.buildNodes(); |
| 35 | 35 |
| 36 return compiler; | 36 return compiler; |
| 37 }); | 37 }); |
| 38 } | 38 } |
| 39 | 39 |
| 40 /// Test group using async_helper. | 40 /// Test group using async_helper. |
| 41 asyncTester(Group group, RunTest runTest) { | 41 asyncTester(Group group, RunTest runTest) { |
| 42 asyncTest(() => Future.forEach(group.results, runTest)); | 42 asyncTest(() => Future.forEach(group.results, runTest)); |
| 43 } | 43 } |
| OLD | NEW |