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

Unified Diff: pkg/http/test/request_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 | « pkg/http/lib/src/utils.dart ('k') | pkg/http/test/safe_http_server.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/test/request_test.dart
diff --git a/pkg/http/test/request_test.dart b/pkg/http/test/request_test.dart
index e17589cc867129df53a32937de63e633015e862c..2e4c57013925bc06aff00e2dbee6c33b4ce37531 100644
--- a/pkg/http/test/request_test.dart
+++ b/pkg/http/test/request_test.dart
@@ -215,10 +215,10 @@ void main() {
var request = new http.Request('POST', serverUrl.resolve('/loop?1'))
..maxRedirects = 2;
- var future = request.send().catchError((e) {
+ var future = request.send().catchError((error) {
print("#maxRedirects test exception received");
- expect(e.error, isRedirectLimitExceededException);
- expect(e.error.redirects.length, equals(2));
+ expect(error, isRedirectLimitExceededException);
+ expect(error.redirects.length, equals(2));
});
expect(future.catchError((_) {}).then((_) {
print("#maxRedirects test stopping server...");
« no previous file with comments | « pkg/http/lib/src/utils.dart ('k') | pkg/http/test/safe_http_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698