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

Unified Diff: tests/standalone/io/process_working_directory_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_working_directory_test.dart
diff --git a/tests/standalone/io/process_working_directory_test.dart b/tests/standalone/io/process_working_directory_test.dart
index 55b154d6685e280a4101ed45df850f9827b67204..662c863e3db7e87d08a5d3b2c603ab3ef971ed5d 100644
--- a/tests/standalone/io/process_working_directory_test.dart
+++ b/tests/standalone/io/process_working_directory_test.dart
@@ -5,6 +5,7 @@
// Process working directory test.
library ProcessWorkingDirectoryTest;
+
import "package:expect/expect.dart";
import "dart:io";
import "process_test_util.dart";
@@ -22,20 +23,20 @@ class ProcessWorkingDirectoryTest {
Directory.systemTemp.createTempSync('dart_process_working_directory');
Expect.isTrue(directory.existsSync());
- Process.start(fullTestFilePath,
- const ["0", "0", "99", "0"],
- workingDirectory: directory.path)
+ Process
+ .start(fullTestFilePath, const ["0", "0", "99", "0"],
+ workingDirectory: directory.path)
.then((process) {
- process.exitCode.then((int exitCode) {
- Expect.equals(exitCode, 99);
- directory.deleteSync();
- });
- process.stdout.listen((_) {});
- process.stderr.listen((_) {});
- }).catchError((error) {
- directory.deleteSync();
- Expect.fail("Couldn't start process");
- });
+ process.exitCode.then((int exitCode) {
+ Expect.equals(exitCode, 99);
+ directory.deleteSync();
+ });
+ process.stdout.listen((_) {});
+ process.stderr.listen((_) {});
+ }).catchError((error) {
+ directory.deleteSync();
+ Expect.fail("Couldn't start process");
+ });
}
static void testInvalidDirectory() {
@@ -43,21 +44,19 @@ class ProcessWorkingDirectoryTest {
Directory.systemTemp.createTempSync('dart_process_working_directory');
Expect.isTrue(directory.existsSync());
- Process.start(fullTestFilePath,
- const ["0", "0", "99", "0"],
- workingDirectory: directory.path + "/subPath")
+ Process
+ .start(fullTestFilePath, const ["0", "0", "99", "0"],
+ workingDirectory: directory.path + "/subPath")
.then((process) {
- Expect.fail("bad process completed");
- directory.deleteSync();
- }).catchError((e) {
- Expect.isNotNull(e);
- directory.deleteSync();
- });
+ Expect.fail("bad process completed");
+ directory.deleteSync();
+ }).catchError((e) {
+ Expect.isNotNull(e);
+ directory.deleteSync();
+ });
}
}
-
-
main() {
ProcessWorkingDirectoryTest.testValidDirectory();
ProcessWorkingDirectoryTest.testInvalidDirectory();

Powered by Google App Engine
This is Rietveld 408576698