Chromium Code Reviews| 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..572d97bb82da38fc5f8df0ab1932b70a16bc45ce 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: (e, tracerror) { |
|
floitsch
2013/10/28 22:55:29
bad search/replace.
Lasse Reichstein Nielsen
2013/10/29 20:18:45
Ack, well spotted. It even looks almost correct (a
|
| // 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); |
| }); |