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

Unified Diff: tests/standalone/io/process_environment_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_environment_test.dart
diff --git a/tests/standalone/io/process_environment_test.dart b/tests/standalone/io/process_environment_test.dart
index 2eb4111f68c778a29ab03833cd8b83b58d69d5d9..2d6f134ada180b7e295ec9e8e6ceb3c0401e84eb 100644
--- a/tests/standalone/io/process_environment_test.dart
+++ b/tests/standalone/io/process_environment_test.dart
@@ -15,22 +15,21 @@ runEnvironmentProcess(Map environment, name, includeParent, callback) {
if (!new File(printEnv).existsSync()) {
printEnv = '../$printEnv';
}
- Process.run(dartExecutable,
- [printEnv, name],
- environment: environment,
- includeParentEnvironment: includeParent)
+ Process
+ .run(dartExecutable, [printEnv, name],
+ environment: environment, includeParentEnvironment: includeParent)
.then((result) {
- if (result.exitCode != 0) {
- print('print_env.dart subprocess failed '
- 'with exit code ${result.exitCode}');
- print('stdout:');
- print(result.stdout);
- print('stderr:');
- print(result.stderr);
- }
- Expect.equals(0, result.exitCode);
- callback(result.stdout);
- });
+ if (result.exitCode != 0) {
+ print('print_env.dart subprocess failed '
+ 'with exit code ${result.exitCode}');
+ print('stdout:');
+ print(result.stdout);
+ print('stderr:');
+ print(result.stderr);
+ }
+ Expect.equals(0, result.exitCode);
+ callback(result.stdout);
+ });
}
testEnvironment() {

Powered by Google App Engine
This is Rietveld 408576698