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

Unified Diff: tests/compiler/dart2js/kernel/helper.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/jsinterop/world_test.dart ('k') | tests/compiler/dart2js/kernel/impact_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/kernel/helper.dart
diff --git a/tests/compiler/dart2js/kernel/helper.dart b/tests/compiler/dart2js/kernel/helper.dart
index 30512d8c496e5fa7a4a10ecfce83d5b3d9fa11b8..4e89025f6dc6df0ca875abe1ab602d772a9f74e2 100644
--- a/tests/compiler/dart2js/kernel/helper.dart
+++ b/tests/compiler/dart2js/kernel/helper.dart
@@ -6,14 +6,15 @@ import 'dart:async';
import 'package:compiler/src/compiler.dart' show Compiler;
import 'package:compiler/src/elements/elements.dart' show Element;
-import 'package:compiler/src/js_backend/backend.dart' as js show JavaScriptBackend;
+import 'package:compiler/src/js_backend/backend.dart' as js
+ show JavaScriptBackend;
import 'package:compiler/src/commandline_options.dart' show Flags;
import 'package:test/test.dart';
import '../memory_compiler.dart';
-Future<String> compile(String code, {String entry: 'main',
- bool useKernel: true}) async {
+Future<String> compile(String code,
+ {String entry: 'main', bool useKernel: true}) async {
List<String> options = <String>[
Flags.disableTypeInference,
Flags.disableInlining,
@@ -24,8 +25,7 @@ Future<String> compile(String code, {String entry: 'main',
code = "$code\n\nmain() => $entry;";
}
CompilationResult result = await runCompiler(
- memorySourceFiles: {'main.dart': code},
- options: options);
+ memorySourceFiles: {'main.dart': code}, options: options);
expect(result.isSuccess, isTrue);
Compiler compiler = result.compiler;
Element element = compiler.mainApp.find(entry);
« no previous file with comments | « tests/compiler/dart2js/jsinterop/world_test.dart ('k') | tests/compiler/dart2js/kernel/impact_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698