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

Unified Diff: tests/standalone/io/file_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/standalone/io/file_invalid_arguments_test.dart ('k') | tests/standalone/io/http_10_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_test.dart
diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart
index a1a11737013e9b498944e93090440d0aad84c072..9ca0fe45504335479a7a81f5d88a7596186e0cc7 100644
--- a/tests/standalone/io/file_test.dart
+++ b/tests/standalone/io/file_test.dart
@@ -152,10 +152,12 @@ class FileTest {
}
position += d.length;
},
- onError: (e) {
+ onError: (error) {
print('Error on input in testReadWriteStreamLargeFile');
- print('with error $e');
- throw e;
+ print('with error $error');
+ var trace = getAttachedStackTrace(error);
+ if (trace != null) print("StackTrace: $trace");
+ throw error;
},
onDone: () {
Expect.equals(expectedLength, position);
@@ -167,6 +169,8 @@ class FileTest {
.catchError((e) {
print('Exception while deleting ReadWriteStreamLargeFile file');
print('Exception $e');
+ var trace = getAttachedStackTrace(e);
+ if (trace != null) print("StackTrace: $trace");
});
});
});
« no previous file with comments | « tests/standalone/io/file_invalid_arguments_test.dart ('k') | tests/standalone/io/http_10_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698