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_segfault_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_segfault_test.dart
diff --git a/tests/standalone/io/process_segfault_test.dart b/tests/standalone/io/process_segfault_test.dart
index 33081396684794331c80c0c0cf79cd074d88ed05..b043ddfb52139bd673ee645bd2bfae1b660ea415 100644
--- a/tests/standalone/io/process_segfault_test.dart
+++ b/tests/standalone/io/process_segfault_test.dart
@@ -5,13 +5,14 @@
// Process test program to test process communication.
library ProcessSegfaultTest;
+
import "package:expect/expect.dart";
import "dart:io";
import "process_test_util.dart";
testExit() {
- var future = Process.start(getProcessTestFileName(),
- const ["0", "0", "1", "1"]);
+ var future =
+ Process.start(getProcessTestFileName(), const ["0", "0", "1", "1"]);
future.then((process) {
process.exitCode.then((int exitCode) {
Expect.isTrue(exitCode != 0);
@@ -21,17 +22,15 @@ testExit() {
});
}
-
testExitRun() {
- Process.run(getProcessTestFileName(),
- const ["0", "0", "1", "1"]).then((result) {
+ Process
+ .run(getProcessTestFileName(), const ["0", "0", "1", "1"]).then((result) {
Expect.isTrue(result.exitCode != 0);
Expect.equals(result.stdout, '');
Expect.equals(result.stderr, '');
});
}
-
main() {
testExit();
testExitRun();

Powered by Google App Engine
This is Rietveld 408576698