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

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

Issue 48483002: Remove deprecated parts of dart:async. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment. Created 7 years, 2 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/http_10_test.dart ('k') | tests/standalone/io/http_cookie_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_content_length_test.dart
diff --git a/tests/standalone/io/http_content_length_test.dart b/tests/standalone/io/http_content_length_test.dart
index f3137781795d4798c6b2f0401e6fc15b0d27b842..627b28fee53b9cf09f20b1a41f0049344d1ef399 100644
--- a/tests/standalone/io/http_content_length_test.dart
+++ b/tests/standalone/io/http_content_length_test.dart
@@ -42,9 +42,8 @@ void testNoBody(int totalConnections, bool explicitContentLength) {
response.close();
response.write("x");
},
- onError: (e) {
+ onError: (e, trace) {
String msg = "Unexpected server error $e";
- var trace = getAttachedStackTrace(e);
if (trace != null) msg += "\nStackTrace: $trace";
Expect.fail(msg);
});
@@ -63,9 +62,8 @@ void testNoBody(int totalConnections, bool explicitContentLength) {
Expect.equals(0, response.contentLength);
response.drain();
})
- .catchError((e) {
+ .catchError((e, trace) {
String msg = "Unexpected error $e";
- var trace = getAttachedStackTrace(e);
if (trace != null) msg += "\nStackTrace: $trace";
Expect.fail(msg);
});
@@ -108,9 +106,8 @@ void testBody(int totalConnections, bool useHeader) {
response.write("x");
});
},
- onError: (e) {
+ onError: (e, trace) {
String msg = "Unexpected error $e";
- var trace = getAttachedStackTrace(e);
if (trace != null) msg += "\nStackTrace: $trace";
Expect.fail(msg);
});
@@ -142,7 +139,7 @@ void testBody(int totalConnections, bool useHeader) {
client.close();
}
},
- onError: (error) {
+ onError: (error, trace) {
// Undefined what server response sends.
});
});
@@ -177,9 +174,8 @@ void testBodyChunked(int totalConnections, bool useHeader) {
response.write("x");
});
},
- onError: (e) {
+ onError: (e, trace) {
String msg = "Unexpected error $e";
- var trace = getAttachedStackTrace(e);
if (trace != null) msg += "\nStackTrace: $trace";
Expect.fail(msg);
});
@@ -215,9 +211,8 @@ void testBodyChunked(int totalConnections, bool useHeader) {
}
});
})
- .catchError((e) {
+ .catchError((e, trace) {
String msg = "Unexpected error $e";
- var trace = getAttachedStackTrace(e);
if (trace != null) msg += "\nStackTrace: $trace";
Expect.fail(msg);
});
« no previous file with comments | « tests/standalone/io/http_10_test.dart ('k') | tests/standalone/io/http_cookie_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698