Index: tests/compiler/dart2js/jsinterop/abstract_test.dart |
diff --git a/tests/compiler/dart2js/jsinterop/abstract_test.dart b/tests/compiler/dart2js/jsinterop/abstract_test.dart |
index 1579fa3e0bd0c6aa294eab2fe027f08a0b7f7393..3233e876a5de8aa18c06139580eb909060065835 100644 |
--- a/tests/compiler/dart2js/jsinterop/abstract_test.dart |
+++ b/tests/compiler/dart2js/jsinterop/abstract_test.dart |
@@ -12,9 +12,8 @@ import '../memory_compiler.dart'; |
void main() { |
asyncTest(() async { |
DiagnosticCollector collector = new DiagnosticCollector(); |
- await runCompiler( |
- diagnosticHandler: collector, |
- memorySourceFiles: const {'main.dart': ''' |
+ await runCompiler(diagnosticHandler: collector, memorySourceFiles: const { |
+ 'main.dart': ''' |
import 'package:js/js.dart'; |
@JS() |
@@ -23,13 +22,11 @@ class A { |
} |
main() => new A(); |
-'''}); |
- Expect.equals(0, collector.errors.length, |
- 'Unexpected error count.'); |
- Expect.equals(1, collector.warnings.length, |
- 'Unexpected warning count.'); |
+''' |
+ }); |
+ Expect.equals(0, collector.errors.length, 'Unexpected error count.'); |
+ Expect.equals(1, collector.warnings.length, 'Unexpected warning count.'); |
Expect.equals(MessageKind.ABSTRACT_GETTER, |
- collector.warnings.first.messageKind, |
- 'Unexpected warning.'); |
+ collector.warnings.first.messageKind, 'Unexpected warning.'); |
}); |
-} |
+} |