Index: tests/compiler/dart2js/diagnose_ambiguous_test.dart |
diff --git a/tests/compiler/dart2js/diagnose_ambiguous_test.dart b/tests/compiler/dart2js/diagnose_ambiguous_test.dart |
index 12e574c97474089ad7754903a8ecf23cb7a59cf4..8867a36232656656c925ff47037b4be767bfa585 100644 |
--- a/tests/compiler/dart2js/diagnose_ambiguous_test.dart |
+++ b/tests/compiler/dart2js/diagnose_ambiguous_test.dart |
@@ -2,7 +2,6 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
- |
import 'package:async_helper/async_helper.dart'; |
import 'package:compiler/compiler_new.dart' show Diagnostic; |
import 'package:expect/expect.dart'; |
@@ -12,9 +11,9 @@ void main() { |
DiagnosticCollector collector = new DiagnosticCollector(); |
asyncTest(() async { |
CompilationResult result = await runCompiler( |
- memorySourceFiles: MEMORY_SOURCE_FILES, |
- diagnosticHandler: collector, |
- options: ['--analyze-all']); |
+ memorySourceFiles: MEMORY_SOURCE_FILES, |
+ diagnosticHandler: collector, |
+ options: ['--analyze-all']); |
List<String> diagnostics = <String>[]; |
collector.messages.forEach((CollectedMessage message) { |
@@ -23,16 +22,16 @@ void main() { |
}); |
diagnostics.sort(); |
var expected = [ |
- "MessageKind.AMBIGUOUS_LOCATION:" |
- "memory:exporter.dart:43:47:'hest' is defined here.:info", |
- "MessageKind.AMBIGUOUS_LOCATION:" |
- "memory:library.dart:41:45:'hest' is defined here.:info", |
- "MessageKind.DUPLICATE_IMPORT:" |
- "memory:main.dart:86:92:Duplicate import of 'hest'.:warning", |
- "MessageKind.IMPORTED_HERE:" |
- "memory:main.dart:0:22:'hest' is imported here.:info", |
- "MessageKind.IMPORTED_HERE:" |
- "memory:main.dart:23:46:'hest' is imported here.:info", |
+ "MessageKind.AMBIGUOUS_LOCATION:" |
+ "memory:exporter.dart:43:47:'hest' is defined here.:info", |
+ "MessageKind.AMBIGUOUS_LOCATION:" |
+ "memory:library.dart:41:45:'hest' is defined here.:info", |
+ "MessageKind.DUPLICATE_IMPORT:" |
+ "memory:main.dart:86:92:Duplicate import of 'hest'.:warning", |
+ "MessageKind.IMPORTED_HERE:" |
+ "memory:main.dart:0:22:'hest' is imported here.:info", |
+ "MessageKind.IMPORTED_HERE:" |
+ "memory:main.dart:23:46:'hest' is imported here.:info", |
]; |
Expect.listEquals(expected, diagnostics); |
Expect.isTrue(result.isSuccess); |