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

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: Rebuild DOM and rebase. 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
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());
});
}

Powered by Google App Engine
This is Rietveld 408576698