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

Unified Diff: tests/lib/async/future_delayed_error_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/lib/async/event_helper.dart ('k') | tests/lib/async/future_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/future_delayed_error_test.dart
diff --git a/tests/lib/async/future_delayed_error_test.dart b/tests/lib/async/future_delayed_error_test.dart
index 8d444c2538fd2ef0fb0be0abe893d2a21ed7e86e..15553723f576417f205140e4c65239d7ab27f431 100644
--- a/tests/lib/async/future_delayed_error_test.dart
+++ b/tests/lib/async/future_delayed_error_test.dart
@@ -13,9 +13,9 @@ testImmediateError() {
// executed then the test will fail with a timeout.
var port = new ReceivePort();
var future = new Future.immediateError("error");
- future.catchError((e) {
+ future.catchError((error) {
port.close();
- Expect.equals(e.error, "error");
+ Expect.equals(error, "error");
});
}
@@ -27,9 +27,9 @@ Future get completedFuture {
testDelayedError() {
var port = new ReceivePort();
- completedFuture.catchError((e) {
+ completedFuture.catchError((error) {
port.close();
- Expect.equals(e.error, "foobar");
+ Expect.equals(error, "foobar");
});
}
« no previous file with comments | « tests/lib/async/event_helper.dart ('k') | tests/lib/async/future_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698