| Index: tests/compiler/dart2js/part_of_test.dart
|
| diff --git a/tests/compiler/dart2js/part_of_test.dart b/tests/compiler/dart2js/part_of_test.dart
|
| index f28ddbe78501e770363c6261f707df5597b434fa..4b0814bf5208fa2ee84df0a80b3921f21e0dbb45 100644
|
| --- a/tests/compiler/dart2js/part_of_test.dart
|
| +++ b/tests/compiler/dart2js/part_of_test.dart
|
| @@ -22,13 +22,11 @@ part of bar;
|
| ''';
|
|
|
| void main() {
|
| - var compiler = new MockCompiler.internal();
|
| + MockCompiler compiler = new MockCompiler.internal();
|
| compiler.registerSource(libraryUri, LIBRARY_SOURCE);
|
| compiler.registerSource(partUri, PART_SOURCE);
|
|
|
| - asyncTest(() =>
|
| - compiler.libraryLoader.loadLibrary(libraryUri, null, libraryUri).
|
| - then((_) {
|
| + asyncTest(() => compiler.libraryLoader.loadLibrary(libraryUri).then((_) {
|
| print('errors: ${compiler.errors}');
|
| print('warnings: ${compiler.warnings}');
|
| Expect.isTrue(compiler.errors.isEmpty);
|
|
|