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

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

Issue 14251006: Remove AsyncError with Expando. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 8 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/https_server_test.dart ('k') | tests/standalone/io/raw_secure_server_socket_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/process_start_exception_test.dart
diff --git a/tests/standalone/io/process_start_exception_test.dart b/tests/standalone/io/process_start_exception_test.dart
index f7a0a6686bbb9907a0fd475875ae4eb96683bebd..a1f891e34fb5ad5a4ddccfcfcd100c4f84d4e8d1 100644
--- a/tests/standalone/io/process_start_exception_test.dart
+++ b/tests/standalone/io/process_start_exception_test.dart
@@ -13,9 +13,9 @@ testStartError() {
Process.start("__path_to_something_that_should_not_exist__",
const []);
processFuture.then((p) => Expect.fail('got process despite start error'))
- .catchError((e) {
- Expect.isTrue(e.error is ProcessException);
- Expect.equals(2, e.error.errorCode, e.error.toString());
+ .catchError((error) {
+ Expect.isTrue(error is ProcessException);
+ Expect.equals(2, error.errorCode, error.toString());
});
}
@@ -25,9 +25,9 @@ testRunError() {
const []);
processFuture.then((result) => Expect.fail("exit handler called"))
- .catchError((e) {
- Expect.isTrue(e.error is ProcessException);
- Expect.equals(2, e.error.errorCode, e.error.toString());
+ .catchError((error) {
+ Expect.isTrue(error is ProcessException);
+ Expect.equals(2, error.errorCode, error.toString());
});
}
« no previous file with comments | « tests/standalone/io/https_server_test.dart ('k') | tests/standalone/io/raw_secure_server_socket_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698