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

Unified Diff: tests/standalone/io/http_redirect_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
Index: tests/standalone/io/http_redirect_test.dart
diff --git a/tests/standalone/io/http_redirect_test.dart b/tests/standalone/io/http_redirect_test.dart
index f1460838909703c3d8f211f69fb776fceff29828..adcd6c331c737d68f17e1bf6a692e97f9c03491b 100644
--- a/tests/standalone/io/http_redirect_test.dart
+++ b/tests/standalone/io/http_redirect_test.dart
@@ -329,8 +329,8 @@ void testAutoRedirectLimit() {
client.getUrl(Uri.parse("http://127.0.0.1:${server.port}/1"))
.then((HttpClientRequest request) => request.close())
- .catchError((e) {
- Expect.equals(5, e.error.redirects.length);
+ .catchError((error) {
+ Expect.equals(5, error.redirects.length);
server.close();
client.close();
}, test: (e) => e is RedirectLimitExceededException);
@@ -344,8 +344,8 @@ void testRedirectLoop() {
int redirectCount = 0;
client.getUrl(Uri.parse("http://127.0.0.1:${server.port}/A"))
.then((HttpClientRequest request) => request.close())
- .catchError((e) {
- Expect.equals(2, e.error.redirects.length);
+ .catchError((error) {
+ Expect.equals(2, error.redirects.length);
server.close();
client.close();
}, test: (e) => e is RedirectLoopException);
« no previous file with comments | « tests/standalone/io/http_content_length_test.dart ('k') | tests/standalone/io/http_server_early_client_close_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698