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

Unified Diff: tests/standalone/io/process_working_directory_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
« no previous file with comments | « tests/standalone/io/process_stdout_test.dart ('k') | tests/standalone/io/stream_pipe_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 01bb1e0b5330d338f7a41ce176dd8a7380884e26..acfe42bc2fb979013fe4db59e3c36e092557ac77 100644
--- a/tests/standalone/io/process_working_directory_test.dart
+++ b/tests/standalone/io/process_working_directory_test.dart
@@ -17,15 +17,14 @@ class ProcessWorkingDirectoryTest {
}
static void testValidDirectory() {
- Directory directory = new Directory("");
- directory.createTempSync();
+ Directory directory = new Directory("").createTempSync();
Expect.isTrue(directory.existsSync());
var options = new ProcessOptions();
options.workingDirectory = directory.path;
- Process process = new Process.start(fullTestFilePath,
- const ["0", "0", "99", "0"],
- options);
+ Process process = Process.start(fullTestFilePath,
+ const ["0", "0", "99", "0"],
+ options);
process.onExit = (int exitCode) {
Expect.equals(exitCode, 99);
@@ -40,15 +39,14 @@ class ProcessWorkingDirectoryTest {
}
static void testInvalidDirectory() {
- Directory directory = new Directory("");
- directory.createTempSync();
+ Directory directory = new Directory("").createTempSync();
Expect.isTrue(directory.existsSync());
var options = new ProcessOptions();
options.workingDirectory = directory.path + "/subPath";
- Process process = new Process.start(fullTestFilePath,
- const ["0", "0", "99", "0"],
- options);
+ Process process = Process.start(fullTestFilePath,
+ const ["0", "0", "99", "0"],
+ options);
process.onExit = (int exitCode) {
Expect.fail("bad process completed");
« no previous file with comments | « tests/standalone/io/process_stdout_test.dart ('k') | tests/standalone/io/stream_pipe_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698