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

Unified Diff: tests/standalone/io/process_start_exception_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_start_exception_test.dart
diff --git a/tests/standalone/io/process_start_exception_test.dart b/tests/standalone/io/process_start_exception_test.dart
index 2bf38cc95f1498d92d7410c30b2df820dee38eab..cb5c20c5c29222358f98eb9f4fa781eb598fa725 100644
--- a/tests/standalone/io/process_start_exception_test.dart
+++ b/tests/standalone/io/process_start_exception_test.dart
@@ -19,25 +19,25 @@ import 'dart:io';
const ENOENT = 2;
testStartError() {
- Future<Process> processFuture =
- Process.start("__path_to_something_that_should_not_exist__",
- const [],
- environment: {"PATH": ""});
- processFuture.then((p) => Expect.fail('got process despite start error'))
- .catchError((error) {
+ Future<Process> processFuture = Process.start(
+ "__path_to_something_that_should_not_exist__", const [],
+ environment: {"PATH": ""});
+ processFuture
+ .then((p) => Expect.fail('got process despite start error'))
+ .catchError((error) {
Expect.isTrue(error is ProcessException);
Expect.equals(ENOENT, error.errorCode, error.toString());
});
}
testRunError() {
- Future<ProcessResult> processFuture =
- Process.run("__path_to_something_that_should_not_exist__",
- const [],
- environment: {"PATH": ""});
+ Future<ProcessResult> processFuture = Process.run(
+ "__path_to_something_that_should_not_exist__", const [],
+ environment: {"PATH": ""});
- processFuture.then((result) => Expect.fail("exit handler called"))
- .catchError((error) {
+ processFuture
+ .then((result) => Expect.fail("exit handler called"))
+ .catchError((error) {
Expect.isTrue(error is ProcessException);
Expect.equals(ENOENT, error.errorCode, error.toString());
});

Powered by Google App Engine
This is Rietveld 408576698