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 8e5a61df12ac43d2ab4bf21b4a86190e29505ebd..2679b30214f622f1fa6d7c874d557aedbb354db3 100644 |
--- a/tests/compiler/dart2js/reexport_handled_test.dart |
+++ b/tests/compiler/dart2js/reexport_handled_test.dart |
@@ -24,13 +24,12 @@ export 'exporting.dart'; |
'''; |
void main() { |
- var compiler; |
+ MockCompiler 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); |
+ return compiler.libraryLoader.loadLibrary(exportingLibraryUri); |
}).then((exportingLibrary) { |
Expect.isTrue(exportingLibrary.exportsHandled); |
var foo = findInExports(exportingLibrary, 'foo'); |
@@ -38,8 +37,7 @@ void main() { |
Expect.isTrue(foo.isField); |
// Load reexporting library when exports are handled on the exporting library. |
- return compiler.libraryLoader.loadLibrary( |
- reexportingLibraryUri, null, reexportingLibraryUri); |
+ return compiler.libraryLoader.loadLibrary(reexportingLibraryUri); |
}).then((reexportingLibrary) { |
var foo = findInExports(reexportingLibrary, 'foo'); |
Expect.isNotNull(foo); |