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

Unified Diff: tests/standalone/io/dart_std_io_pipe_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 | « samples/total/server/TotalRunner.dart ('k') | tests/standalone/io/directory_error_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/dart_std_io_pipe_test.dart
diff --git a/tests/standalone/io/dart_std_io_pipe_test.dart b/tests/standalone/io/dart_std_io_pipe_test.dart
index ad218bc188e8c5e4ec55987ef021f9f66bcf412a..95019e5b535a65e24cda81d1fdc0a7ee5d86adbe 100644
--- a/tests/standalone/io/dart_std_io_pipe_test.dart
+++ b/tests/standalone/io/dart_std_io_pipe_test.dart
@@ -31,8 +31,7 @@ void checkFileContent(String fileName, String content) {
void test(String shellScript, String dartScript, String type) {
- Directory dir = new Directory("");
- dir.createTempSync();
+ Directory dir = new Directory("").createTempSync();
// The shell script will run the dart executable passed with a
// number of different redirections of stdio.
@@ -41,7 +40,7 @@ void test(String shellScript, String dartScript, String type) {
String executable = new Options().executable;
List args =
[executable, dartScript, type, pipeOutFile, redirectOutFile];
- Process process = new Process.start(shellScript, args);
+ Process process = Process.start(shellScript, args);
// Wait for the process to exit and then check result.
process.onExit = (exitCode) {
« no previous file with comments | « samples/total/server/TotalRunner.dart ('k') | tests/standalone/io/directory_error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698