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

Unified Diff: tests/compiler/dart2js/command_line_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/command_line_test.dart
diff --git a/tests/compiler/dart2js/command_line_test.dart b/tests/compiler/dart2js/command_line_test.dart
index fe2842e997d4ad64b2f4016875c65116e56d043b..7ccc43d0582eb0fa86b691c7fca7ef24f371d9f2 100644
--- a/tests/compiler/dart2js/command_line_test.dart
+++ b/tests/compiler/dart2js/command_line_test.dart
@@ -19,8 +19,7 @@ main() {
await test([], exitCode: 1);
await test(['foo.dart']);
await test([Flags.resolveOnly, 'foo.dart'],
- resolveOnly: true,
- resolutionOutput: Uri.base.resolve('out.data'));
+ resolveOnly: true, resolutionOutput: Uri.base.resolve('out.data'));
await test(['--resolution-input=bar.dart', 'foo.dart'],
resolutionInputs: [Uri.base.resolve('bar.dart')]);
await test([Flags.resolveOnly, '--resolution-input=bar.dart', 'foo.dart'],
@@ -34,9 +33,9 @@ main() {
Future test(List<String> arguments,
{int exitCode,
- bool resolveOnly: false,
- Uri resolutionOutput,
- List<Uri> resolutionInputs}) async {
+ bool resolveOnly: false,
+ Uri resolutionOutput,
+ List<Uri> resolutionInputs}) async {
print('--------------------------------------------------------------------');
print('dart2js ${arguments.join(' ')}');
print('--------------------------------------------------------------------');
@@ -62,13 +61,13 @@ Future test(List<String> arguments,
Expect.equals(exitCode, actualExitCode, "Unexpected exit code");
if (actualExitCode == null) {
Expect.isNotNull(options, "Missing options object");
- Expect.equals(resolveOnly, options.resolveOnly,
- "Unexpected resolveOnly value");
+ Expect.equals(
+ resolveOnly, options.resolveOnly, "Unexpected resolveOnly value");
Expect.equals(resolutionOutput, options.resolutionOutput,
"Unexpected resolutionOutput value");
if (resolutionInputs == null) {
- Expect.isNull(options.resolutionInputs,
- "Unexpected resolutionInputs value");
+ Expect.isNull(
+ options.resolutionInputs, "Unexpected resolutionInputs value");
} else {
Expect.listEquals(resolutionInputs, options.resolutionInputs,
"Unexpected resolutionInputs value");
@@ -77,4 +76,4 @@ Future test(List<String> arguments,
entry.compileFunc = oldCompileFunc;
entry.exitFunc = oldExitFunc;
-}
+}
« no previous file with comments | « tests/compiler/dart2js/command_line_split_test.dart ('k') | tests/compiler/dart2js/compile_with_empty_libraries_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698