| 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 3a134dc767404a599c4b3bdff47a57ec7498bc2a..d2e81d8e76b63b198057bcff4129d63560a1b6ae 100644
|
| --- a/tests/compiler/dart2js/part_of_test.dart
|
| +++ b/tests/compiler/dart2js/part_of_test.dart
|
| @@ -6,8 +6,7 @@ library part_of_test;
|
|
|
| import "package:expect/expect.dart";
|
| import "package:async_helper/async_helper.dart";
|
| -import 'package:compiler/src/diagnostics/messages.dart' show
|
| - MessageKind;
|
| +import 'package:compiler/src/diagnostics/messages.dart' show MessageKind;
|
| import 'mock_compiler.dart';
|
|
|
| final libraryUri = Uri.parse('test:library.dart');
|
| @@ -27,14 +26,16 @@ void main() {
|
| compiler.registerSource(partUri, PART_SOURCE);
|
|
|
| asyncTest(() => compiler.libraryLoader.loadLibrary(libraryUri).then((_) {
|
| - DiagnosticCollector collector = compiler.diagnosticCollector;
|
| - print('errors: ${collector.errors}');
|
| - print('warnings: ${collector.warnings}');
|
| - Expect.isTrue(collector.errors.isEmpty);
|
| - Expect.equals(1, collector.warnings.length);
|
| - Expect.equals(MessageKind.LIBRARY_NAME_MISMATCH,
|
| - collector.warnings.first.messageKind);
|
| - Expect.equals('foo',
|
| - collector.warnings.first.message.arguments['libraryName'].toString());
|
| - }));
|
| + DiagnosticCollector collector = compiler.diagnosticCollector;
|
| + print('errors: ${collector.errors}');
|
| + print('warnings: ${collector.warnings}');
|
| + Expect.isTrue(collector.errors.isEmpty);
|
| + Expect.equals(1, collector.warnings.length);
|
| + Expect.equals(MessageKind.LIBRARY_NAME_MISMATCH,
|
| + collector.warnings.first.messageKind);
|
| + Expect.equals(
|
| + 'foo',
|
| + collector.warnings.first.message.arguments['libraryName']
|
| + .toString());
|
| + }));
|
| }
|
|
|