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

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

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 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
« no previous file with comments | « tests/compiler/dart2js/switch_empty_default_test.dart ('k') | tests/compiler/dart2js/tdiv_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+ }));
}
« no previous file with comments | « tests/compiler/dart2js/switch_empty_default_test.dart ('k') | tests/compiler/dart2js/tdiv_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698