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

Unified Diff: tests/compiler/dart2js/message_kind_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
« no previous file with comments | « tests/compiler/dart2js/message_kind_helper.dart ('k') | tests/compiler/dart2js/message_span_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/message_kind_test.dart
diff --git a/tests/compiler/dart2js/message_kind_test.dart b/tests/compiler/dart2js/message_kind_test.dart
index 5ba3ec6b12224ec64df7aa5ad880abead1051d8c..c4b45377f8070e06a1684cf939033ae7b4e1dd09 100644
--- a/tests/compiler/dart2js/message_kind_test.dart
+++ b/tests/compiler/dart2js/message_kind_test.dart
@@ -5,9 +5,8 @@
import 'package:expect/expect.dart';
import 'dart:async';
import "package:async_helper/async_helper.dart";
-import 'package:compiler/src/diagnostics/messages.dart' show
- MessageKind,
- MessageTemplate;
+import 'package:compiler/src/diagnostics/messages.dart'
+ show MessageKind, MessageTemplate;
import 'message_kind_helper.dart';
@@ -23,30 +22,34 @@ main(List<String> arguments) {
if (!arguments.isEmpty && !arguments.contains(name)) continue;
if (name == 'GENERIC' // Shouldn't be used.
// We can't provoke a crash.
- || name == 'COMPILER_CRASHED'
- || name == 'PLEASE_REPORT_THE_CRASH'
+ ||
+ name == 'COMPILER_CRASHED' ||
+ name == 'PLEASE_REPORT_THE_CRASH'
// We cannot provide examples for patch errors.
- || name.startsWith('PATCH_')
- || name == 'LIBRARY_NOT_SUPPORTED'
+ ||
+ name.startsWith('PATCH_') ||
+ name == 'LIBRARY_NOT_SUPPORTED'
// TODO(johnniwinther): Remove these when [Compiler.reportUnusedCode] is
// reenabled.
- || name == 'UNUSED_METHOD'
- || name == 'UNUSED_CLASS'
- || name == 'UNUSED_TYPEDEF') continue;
+ ||
+ name == 'UNUSED_METHOD' ||
+ name == 'UNUSED_CLASS' ||
+ name == 'UNUSED_TYPEDEF') continue;
if (template.examples != null) {
examples.add(template);
} else {
print("No example in '$name'");
}
- };
+ }
+ ;
var cachedCompiler;
asyncTest(() => Future.forEach(examples, (MessageTemplate template) {
- print("Checking '${template.kind}'.");
- Stopwatch sw = new Stopwatch()..start();
- return check(template, cachedCompiler).then((var compiler) {
- cachedCompiler = compiler;
- sw.stop();
- print("Checked '${template.kind}' in ${sw.elapsedMilliseconds}ms.");
- });
- }));
+ print("Checking '${template.kind}'.");
+ Stopwatch sw = new Stopwatch()..start();
+ return check(template, cachedCompiler).then((var compiler) {
+ cachedCompiler = compiler;
+ sw.stop();
+ print("Checked '${template.kind}' in ${sw.elapsedMilliseconds}ms.");
+ });
+ }));
}
« no previous file with comments | « tests/compiler/dart2js/message_kind_helper.dart ('k') | tests/compiler/dart2js/message_span_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698