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

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

Issue 10392023: Change dart:io to use Future for one-shot operations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding stable test binaries Created 8 years, 7 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 7c93e9a772efa4b30d799920429f6cac14c17b7b..53ffaab9795fff04d955a2723d1dc37a2caa77e9 100644
--- a/tests/standalone/io/process_segfault_test.dart
+++ b/tests/standalone/io/process_segfault_test.dart
@@ -9,8 +9,8 @@
#source("process_test_util.dart");
testExit() {
- Process process = new Process.start(getProcessTestFileName(),
- const ["0", "0", "1", "1"]);
+ Process process = Process.start(getProcessTestFileName(),
+ const ["0", "0", "1", "1"]);
process.onExit = (int exitCode) {
Expect.isTrue(exitCode != 0);
@@ -20,13 +20,11 @@ testExit() {
testExitRun() {
- Process process = new Process.run(getProcessTestFileName(),
- const ["0", "0", "1", "1"],
- null,
- (exit, out, err) {
- Expect.isTrue(exit != 0);
- Expect.equals(out, '');
- Expect.equals(err, '');
+ Process.run(getProcessTestFileName(),
+ const ["0", "0", "1", "1"]).then((result) {
+ Expect.isTrue(result.exitCode != 0);
+ Expect.equals(result.stdout, '');
+ Expect.equals(result.stderr, '');
});
}
« no previous file with comments | « tests/standalone/io/process_run_output_test.dart ('k') | tests/standalone/io/process_start_exception_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698