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

Unified Diff: tests/standalone/src/ProcessWorkingDirectoryTest.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
« no previous file with comments | « tests/standalone/src/ProcessStdoutTest.dart ('k') | tests/standalone/src/SocketCloseTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/ProcessWorkingDirectoryTest.dart
diff --git a/tests/standalone/src/ProcessWorkingDirectoryTest.dart b/tests/standalone/src/ProcessWorkingDirectoryTest.dart
index c9dd7394547466d2b5ea20b237512571d268fbdc..db5ab41ba9701f157379a466167737db296abd4d 100644
--- a/tests/standalone/src/ProcessWorkingDirectoryTest.dart
+++ b/tests/standalone/src/ProcessWorkingDirectoryTest.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
@@ -25,13 +25,13 @@ class ProcessWorkingDirectoryTest {
const ["0", "0", "99", "0"],
directory.path);
- process.exitHandler = (int exitCode) {
+ process.onExit = (int exitCode) {
Expect.equals(exitCode, 99);
process.close();
directory.deleteSync();
};
- process.errorHandler = (error) {
+ process.onError = (error) {
Expect.fail("error running process $error");
directory.deleteSync();
};
@@ -46,13 +46,13 @@ class ProcessWorkingDirectoryTest {
const ["0", "0", "99", "0"],
directory.path + "/subPath");
- process.exitHandler = (int exitCode) {
+ process.onExit = (int exitCode) {
Expect.fail("bad process completed");
process.close();
directory.deleteSync();
};
- process.errorHandler = (error) {
+ process.onError = (error) {
Expect.isNotNull(error);
directory.deleteSync();
};
« no previous file with comments | « tests/standalone/src/ProcessStdoutTest.dart ('k') | tests/standalone/src/SocketCloseTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698