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

Unified Diff: tests/compiler/dart2js/jsinterop/abstract_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/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.');
});
-}
+}
« no previous file with comments | « tests/compiler/dart2js/js_throw_behavior_test.dart ('k') | tests/compiler/dart2js/jsinterop/world_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698