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

Unified Diff: tests/standalone/io/process_sync_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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/standalone/io/process_sync_test.dart
diff --git a/tests/standalone/io/process_sync_test.dart b/tests/standalone/io/process_sync_test.dart
index 4d4b10f54ce06a90feb97fe46bbb4294379013d8..5ad191187d0db8ee84a421f404832d8f1f84f13c 100644
--- a/tests/standalone/io/process_sync_test.dart
+++ b/tests/standalone/io/process_sync_test.dart
@@ -8,20 +8,18 @@ import "package:expect/expect.dart";
import 'package:path/path.dart';
import "dart:io";
-test(int blockCount,
- int stdoutBlockSize,
- int stderrBlockSize,
- int exitCode,
- [int nonWindowsExitCode]) {
+test(int blockCount, int stdoutBlockSize, int stderrBlockSize, int exitCode,
+ [int nonWindowsExitCode]) {
// Get the Dart script file that generates output.
- var scriptFile = new File(Platform.script
- .resolve("process_sync_script.dart")
- .toFilePath());
- var args = [scriptFile.path,
- blockCount.toString(),
- stdoutBlockSize.toString(),
- stderrBlockSize.toString(),
- exitCode.toString()];
+ var scriptFile = new File(
+ Platform.script.resolve("process_sync_script.dart").toFilePath());
+ var args = [
+ scriptFile.path,
+ blockCount.toString(),
+ stdoutBlockSize.toString(),
+ stderrBlockSize.toString(),
+ exitCode.toString()
+ ];
ProcessResult syncResult = Process.runSync(Platform.executable, args);
Expect.equals(blockCount * stdoutBlockSize, syncResult.stdout.length);
Expect.equals(blockCount * stderrBlockSize, syncResult.stderr.length);
@@ -61,4 +59,3 @@ main() {
test(10, 10, 10, -1, 255);
test(10, 10, 10, -255, 1);
}
-

Powered by Google App Engine
This is Rietveld 408576698