| Index: tests/compiler/dart2js/reexport_handled_test.dart
|
| diff --git a/tests/compiler/dart2js/reexport_handled_test.dart b/tests/compiler/dart2js/reexport_handled_test.dart
|
| index f2982ed1a7e1eae5fad1b651543541ebe9cd080d..8e5a61df12ac43d2ab4bf21b4a86190e29505ebd 100644
|
| --- a/tests/compiler/dart2js/reexport_handled_test.dart
|
| +++ b/tests/compiler/dart2js/reexport_handled_test.dart
|
| @@ -24,13 +24,14 @@ export 'exporting.dart';
|
| ''';
|
|
|
| void main() {
|
| - var compiler = new MockCompiler();
|
| - compiler.registerSource(exportingLibraryUri, EXPORTING_LIBRARY_SOURCE);
|
| - compiler.registerSource(reexportingLibraryUri, REEXPORTING_LIBRARY_SOURCE);
|
| -
|
| - // Load exporting library before the reexporting library.
|
| - asyncTest(() => compiler.libraryLoader.loadLibrary(
|
| - exportingLibraryUri, null, exportingLibraryUri).then((exportingLibrary) {
|
| + var compiler;
|
| + asyncTest(() => MockCompiler.create((MockCompiler c) {
|
| + compiler = c;
|
| + compiler.registerSource(exportingLibraryUri, EXPORTING_LIBRARY_SOURCE);
|
| + compiler.registerSource(reexportingLibraryUri, REEXPORTING_LIBRARY_SOURCE);
|
| + return compiler.libraryLoader.loadLibrary(
|
| + exportingLibraryUri, null, exportingLibraryUri);
|
| + }).then((exportingLibrary) {
|
| Expect.isTrue(exportingLibrary.exportsHandled);
|
| var foo = findInExports(exportingLibrary, 'foo');
|
| Expect.isNotNull(foo);
|
|
|