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

Unified Diff: tests/standalone/src/DartStdIOPipeTest.dart

Issue 9500002: Rename blahHandler to onBlah throughout dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 10 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/src/DartStdIOPipeTest.dart
diff --git a/tests/standalone/src/DartStdIOPipeTest.dart b/tests/standalone/src/DartStdIOPipeTest.dart
index 7dc9ba09db1bbc7c18d6aa23b4ebb70ab4c18f31..54ed37d27abe5816cda6ce07bb112adc62f5dc08 100644
--- a/tests/standalone/src/DartStdIOPipeTest.dart
+++ b/tests/standalone/src/DartStdIOPipeTest.dart
@@ -16,7 +16,7 @@
void checkFileEmpty(String fileName) {
RandomAccessFile pipeOut = new File(fileName).openSync();
Expect.equals(0, pipeOut.lengthSync());
- pipeOut.close();
+ pipeOut.closeSync();
}
@@ -26,7 +26,7 @@ void checkFileContent(String fileName, String content) {
List data = new List<int>(length);
pipeOut.readListSync(data, 0, length);
Expect.equals(content, new String.fromCharCodes(data));
- pipeOut.close();
+ pipeOut.closeSync();
}
@@ -43,7 +43,7 @@ void test(String shellScript, String dartScript, String type) {
Process process = new Process.start(shellScript, args);
// Wait for the process to exit and then check result.
- process.exitHandler = (exitCode) {
+ process.onExit = (exitCode) {
Expect.equals(0, exitCode);
process.close();
@@ -67,10 +67,10 @@ void test(String shellScript, String dartScript, String type) {
}
// Cleanup test directory.
- dir.delete(true);
+ dir.deleteRecursivelySync();
};
- process.errorHandler = (ProcessException error) {
+ process.onError = (ProcessException error) {
Expect.fail(error.toString());
};
}
« no previous file with comments | « tests/standalone/src/ChunkedStreamTest.dart ('k') | tests/standalone/src/DirectoryInvalidArgumentsTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698