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

Unified Diff: tests/compiler/dart2js/reexport_handled_test.dart

Issue 2760923004: Eliminate multi-callback structure for LibraryLoader. (Closed)
Patch Set: . Created 3 years, 9 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: 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 4bdaa0454540b6cc406bae365a9c94d1ef4bc107..8a7c6f798ef49b38e6cd1062529bfccd23ba481b 100644
--- a/tests/compiler/dart2js/reexport_handled_test.dart
+++ b/tests/compiler/dart2js/reexport_handled_test.dart
@@ -30,7 +30,9 @@ void main() {
compiler.registerSource(
reexportingLibraryUri, REEXPORTING_LIBRARY_SOURCE);
return compiler.libraryLoader.loadLibrary(exportingLibraryUri);
- }).then((exportingLibrary) {
+ }).then((loadedLibraries) {
+ compiler.processLoadedLibraries(loadedLibraries);
+ var exportingLibrary = loadedLibraries.rootLibrary;
Expect.isTrue(exportingLibrary.exportsHandled);
var foo = exportingLibrary.findExported('foo');
Expect.isNotNull(foo);
@@ -38,8 +40,9 @@ void main() {
// Load reexporting library when exports are handled on the exporting library.
return compiler.libraryLoader.loadLibrary(reexportingLibraryUri);
- }).then((reexportingLibrary) {
- var foo = reexportingLibrary.findExported('foo');
+ }).then((loadedLibraries) {
+ compiler.processLoadedLibraries(loadedLibraries);
+ var foo = loadedLibraries.rootLibrary.findExported('foo');
Expect.isNotNull(foo);
Expect.isTrue(foo.isField);
}));
« tests/compiler/dart2js/memory_compiler.dart ('K') | « tests/compiler/dart2js/part_of_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698