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

Unified Diff: tests/compiler/dart2js/analyze_all_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 | « no previous file | tests/compiler/dart2js/analyze_api_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/analyze_all_test.dart
diff --git a/tests/compiler/dart2js/analyze_all_test.dart b/tests/compiler/dart2js/analyze_all_test.dart
index 7039f93229a8362da40809e642d9db7e99e945fa..9b1b6e3f508f7a476ccb230051dac63f43c2cadf 100644
--- a/tests/compiler/dart2js/analyze_all_test.dart
+++ b/tests/compiler/dart2js/analyze_all_test.dart
@@ -30,10 +30,8 @@ main() {
}
""";
-Future<DiagnosticCollector> run(
- String source,
- {bool analyzeAll,
- bool expectSuccess}) async {
+Future<DiagnosticCollector> run(String source,
+ {bool analyzeAll, bool expectSuccess}) async {
DiagnosticCollector collector = new DiagnosticCollector();
List<String> options = [];
@@ -53,20 +51,20 @@ Future<DiagnosticCollector> run(
test1() async {
DiagnosticCollector collector =
await run(SOURCE, analyzeAll: false, expectSuccess: true);
- Expect.isTrue(collector.warnings.isEmpty,
- 'Unexpected warnings: ${collector.warnings}');
- Expect.isTrue(collector.errors.isEmpty,
- 'Unexpected errors: ${collector.errors}');
+ Expect.isTrue(
+ collector.warnings.isEmpty, 'Unexpected warnings: ${collector.warnings}');
+ Expect.isTrue(
+ collector.errors.isEmpty, 'Unexpected errors: ${collector.errors}');
}
test2() async {
DiagnosticCollector collector =
await run(SOURCE, analyzeAll: true, expectSuccess: false);
- Expect.isTrue(collector.warnings.isEmpty,
- 'unexpected warnings: ${collector.warnings}');
+ Expect.isTrue(
+ collector.warnings.isEmpty, 'unexpected warnings: ${collector.warnings}');
Expect.equals(2, collector.errors.length,
- 'expected exactly two errors, but got ${collector.errors}');
+ 'expected exactly two errors, but got ${collector.errors}');
CollectedMessage first = collector.errors.first;
Expect.equals(MessageKind.CONSTRUCTOR_IS_NOT_CONST, first.message.kind);
@@ -99,10 +97,10 @@ main() => new A().m();
DiagnosticCollector collector =
await run(source, analyzeAll: true, expectSuccess: false);
- Expect.isTrue(collector.warnings.isEmpty,
- 'unexpected warnings: ${collector.warnings}');
+ Expect.isTrue(
+ collector.warnings.isEmpty, 'unexpected warnings: ${collector.warnings}');
Expect.equals(1, collector.errors.length,
- 'expected exactly one error, but got ${collector.errors}');
+ 'expected exactly one error, but got ${collector.errors}');
}
main() {
« no previous file with comments | « no previous file | tests/compiler/dart2js/analyze_api_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698