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

Unified Diff: lib/src/frontend/throws_matcher.dart

Issue 1124113002: Add a flag controlling how verbose stack traces are. (Closed) Base URL: git@github.com:dart-lang/test.git@master
Patch Set: Created 5 years, 7 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 | « lib/src/frontend/future_matchers.dart ('k') | lib/src/runner/loader.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/frontend/throws_matcher.dart
diff --git a/lib/src/frontend/throws_matcher.dart b/lib/src/frontend/throws_matcher.dart
index 956941c94ca883942ed9b6678711690b1aee01eb..7ca469eff3e84b21529dcc8fc13e00ea577d0617 100644
--- a/lib/src/frontend/throws_matcher.dart
+++ b/lib/src/frontend/throws_matcher.dart
@@ -60,8 +60,9 @@ class Throws extends Matcher {
var reason;
if (trace != null) {
- var stackTrace = terseChain(trace).toString();
- stackTrace = " ${stackTrace.replaceAll("\n", "\n ")}";
+ var stackTrace = terseChain(trace,
+ verbose: Invoker.current.metadata.verboseTrace);
+ stackTrace = " ${stackTrace.toString().replaceAll("\n", "\n ")}";
reason = "Actual exception trace:\n$stackTrace";
}
« no previous file with comments | « lib/src/frontend/future_matchers.dart ('k') | lib/src/runner/loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698