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

Unified Diff: tests/compiler/dart2js/reexport_handled_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
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 ade33737580017ef6db6a95f0558362ef76a010c..4bdaa0454540b6cc406bae365a9c94d1ef4bc107 100644
--- a/tests/compiler/dart2js/reexport_handled_test.dart
+++ b/tests/compiler/dart2js/reexport_handled_test.dart
@@ -8,8 +8,7 @@ import "package:expect/expect.dart";
import "package:async_helper/async_helper.dart";
import 'mock_compiler.dart';
import 'package:compiler/src/elements/elements.dart'
- show Element,
- LibraryElement;
+ show Element, LibraryElement;
final exportingLibraryUri = Uri.parse('exporting.dart');
const String EXPORTING_LIBRARY_SOURCE = '''
@@ -26,21 +25,22 @@ export 'exporting.dart';
void main() {
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);
- }).then((exportingLibrary) {
- Expect.isTrue(exportingLibrary.exportsHandled);
- var foo = exportingLibrary.findExported('foo');
- Expect.isNotNull(foo);
- Expect.isTrue(foo.isField);
+ compiler = c;
+ compiler.registerSource(exportingLibraryUri, EXPORTING_LIBRARY_SOURCE);
+ compiler.registerSource(
+ reexportingLibraryUri, REEXPORTING_LIBRARY_SOURCE);
+ return compiler.libraryLoader.loadLibrary(exportingLibraryUri);
+ }).then((exportingLibrary) {
+ Expect.isTrue(exportingLibrary.exportsHandled);
+ var foo = exportingLibrary.findExported('foo');
+ Expect.isNotNull(foo);
+ Expect.isTrue(foo.isField);
- // Load reexporting library when exports are handled on the exporting library.
- return compiler.libraryLoader.loadLibrary(reexportingLibraryUri);
- }).then((reexportingLibrary) {
- var foo = reexportingLibrary.findExported('foo');
- Expect.isNotNull(foo);
- Expect.isTrue(foo.isField);
- }));
+ // Load reexporting library when exports are handled on the exporting library.
+ return compiler.libraryLoader.loadLibrary(reexportingLibraryUri);
+ }).then((reexportingLibrary) {
+ var foo = reexportingLibrary.findExported('foo');
+ Expect.isNotNull(foo);
+ Expect.isTrue(foo.isField);
+ }));
}
« no previous file with comments | « tests/compiler/dart2js/redundant_phi_eliminator_test.dart ('k') | tests/compiler/dart2js/regress_10231_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698