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

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: Rebuild DOM and rebase. 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/file_test.dart
diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart
index a4dc4ec25b49b14354eabe7fbe13123e63a6fdc5..224a0823f9ec51a16336bc5f242257c10622627b 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");
});
});
});

Powered by Google App Engine
This is Rietveld 408576698