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

Unified Diff: tests/compiler/dart2js/bad_loop_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/bad_loop_test.dart
diff --git a/tests/compiler/dart2js/bad_loop_test.dart b/tests/compiler/dart2js/bad_loop_test.dart
index bc6d43d59c2a176272aeaf61bbeb6680c6d5786e..979c8adfc19766669552537c58bf7f15d5b1285b 100644
--- a/tests/compiler/dart2js/bad_loop_test.dart
+++ b/tests/compiler/dart2js/bad_loop_test.dart
@@ -6,8 +6,7 @@ import 'package:expect/expect.dart';
import 'memory_source_file_helper.dart';
import "package:async_helper/async_helper.dart";
-import 'package:compiler/compiler.dart'
- show Diagnostic;
+import 'package:compiler/compiler.dart' show Diagnostic;
import 'package:compiler/src/options.dart' show CompilerOptions;
import 'package:compiler/src/old_to_new_api.dart';
@@ -19,8 +18,8 @@ main() {
var provider = new MemorySourceFileProvider(MEMORY_SOURCE_FILES);
int warningCount = 0;
int errorCount = 0;
- void diagnosticHandler(Uri uri, int begin, int end,
- String message, Diagnostic kind) {
+ void diagnosticHandler(
+ Uri uri, int begin, int end, String message, Diagnostic kind) {
if (kind == Diagnostic.VERBOSE_INFO) {
return;
}
@@ -37,14 +36,12 @@ main() {
new LegacyCompilerInput(provider.readStringFromUri),
new LegacyCompilerOutput(),
new LegacyCompilerDiagnostics(diagnosticHandler),
- new CompilerOptions(
- libraryRoot: libraryRoot,
- packageRoot: packageRoot));
+ new CompilerOptions(libraryRoot: libraryRoot, packageRoot: packageRoot));
asyncTest(() => compiler.run(Uri.parse('memory:main.dart')).then((_) {
- Expect.isTrue(compiler.compilationFailed);
- Expect.equals(5, errorCount);
- Expect.equals(1, warningCount);
- }));
+ Expect.isTrue(compiler.compilationFailed);
+ Expect.equals(5, errorCount);
+ Expect.equals(1, warningCount);
+ }));
}
const Map MEMORY_SOURCE_FILES = const {
« no previous file with comments | « tests/compiler/dart2js/async_compiler_input_provider_test.dart ('k') | tests/compiler/dart2js/bad_output_io_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698