| Index: tests/compiler/dart2js/tag_mapping_test.dart
|
| diff --git a/tests/compiler/dart2js/tag_mapping_test.dart b/tests/compiler/dart2js/tag_mapping_test.dart
|
| index ed781f3d7e38dbc94fb45de6dcc0bdd32da9890f..8080942809e8003b4f09cee21b3e237c901a5ee9 100644
|
| --- a/tests/compiler/dart2js/tag_mapping_test.dart
|
| +++ b/tests/compiler/dart2js/tag_mapping_test.dart
|
| @@ -26,18 +26,18 @@ void main() {
|
| };
|
|
|
| asyncTest(() => compileSources(sources, (MockCompiler compiler) {
|
| - LibraryElement mainApp =
|
| - compiler.libraryLoader.lookupLibrary(Uri.parse('source:/main.dart'));
|
| - LibraryElement lib =
|
| - compiler.libraryLoader.lookupLibrary(Uri.parse('source:/library.dart'));
|
| - Expect.isNotNull(mainApp, 'Could not find main.dart library');
|
| - Expect.isNotNull(lib, 'Could not find library.dart library');
|
| -
|
| - ImportElement import = mainApp.imports.single;
|
| - Expect.isNotNull(import, 'Could not find import tag in $mainApp');
|
| -
|
| - // Test that we can get from the import tag in main.dart to the
|
| - // library element representing library.dart.
|
| - Expect.identical(lib, import.importedLibrary);
|
| - }));
|
| + LibraryElement mainApp = compiler.libraryLoader
|
| + .lookupLibrary(Uri.parse('source:/main.dart'));
|
| + LibraryElement lib = compiler.libraryLoader
|
| + .lookupLibrary(Uri.parse('source:/library.dart'));
|
| + Expect.isNotNull(mainApp, 'Could not find main.dart library');
|
| + Expect.isNotNull(lib, 'Could not find library.dart library');
|
| +
|
| + ImportElement import = mainApp.imports.single;
|
| + Expect.isNotNull(import, 'Could not find import tag in $mainApp');
|
| +
|
| + // Test that we can get from the import tag in main.dart to the
|
| + // library element representing library.dart.
|
| + Expect.identical(lib, import.importedLibrary);
|
| + }));
|
| }
|
|
|