Chromium Code Reviews

Unified Diff: pkg/unittest/lib/src/future_matchers.dart

Issue 48483002: Remove deprecated parts of dart:async. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: pkg/unittest/lib/src/future_matchers.dart
diff --git a/pkg/unittest/lib/src/future_matchers.dart b/pkg/unittest/lib/src/future_matchers.dart
index 490ca6af88411238e627fec1ebc54710de28c416..c9e2742ec5ba737e58dff5f6360dd4238cb5bbcf 100644
--- a/pkg/unittest/lib/src/future_matchers.dart
+++ b/pkg/unittest/lib/src/future_matchers.dart
@@ -42,11 +42,10 @@ class _Completes extends Matcher {
item.then((value) {
done(() { if (_matcher != null) expect(value, _matcher); });
- }, onError: (error) {
+ }, onError: (error, trace) {
var id = _id == '' ? '' : '${_id} ';
var reason = 'Expected future ${id}to complete successfully, '
'but it failed with ${error}';
- var trace = getAttachedStackTrace(error);
if (trace != null) {
var stackTrace = trace.toString();
stackTrace = ' ${stackTrace.replaceAll('\n', '\n ')}';

Powered by Google App Engine