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

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

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/regress_7097_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 b5fe0ee88adc11e030df56074e3c23fe3d336146..3240cb95ec294ff67647cc129fc500c6998a85da 100644
--- a/tests/standalone/io/process_working_directory_test.dart
+++ b/tests/standalone/io/process_working_directory_test.dart
@@ -31,8 +31,7 @@ class ProcessWorkingDirectoryTest {
};
process.stdout.onData = process.stdout.read;
process.stderr.onData = process.stderr.read;
- });
- processFuture.handleException((error) {
+ }).catchError((error) {
directory.deleteSync();
Expect.fail("Couldn't start process");
});
@@ -50,12 +49,9 @@ class ProcessWorkingDirectoryTest {
future.then((process) {
Expect.fail("bad process completed");
directory.deleteSync();
- });
-
- future.handleException((e) {
+ }).catchError((e) {
Expect.isNotNull(e);
directory.deleteSync();
- return true;
});
}
}
« no previous file with comments | « tests/standalone/io/process_stdout_test.dart ('k') | tests/standalone/io/regress_7097_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698