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

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

Issue 1960503002: Fix all strong-mode errors and warnings. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: .analysis_options Created 4 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/executable.dart ('k') | lib/src/frontend/timeout.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 4aa7dd082fabbd196e73e9921eb10d85d11eae0b..8d202d6b9755f6f5c1f440165f2db076e4216ff9 100644
--- a/lib/src/frontend/throws_matcher.dart
+++ b/lib/src/frontend/throws_matcher.dart
@@ -58,10 +58,10 @@ class Throws extends Matcher {
var reason;
if (trace != null) {
- var stackTrace = terseChain(trace,
- verbose: Invoker.current.liveTest.test.metadata.verboseTrace);
- stackTrace = " ${stackTrace.toString().replaceAll("\n", "\n ")}";
- reason = "Actual exception trace:\n$stackTrace";
+ var chain = terseChain(trace,
+ verbose: Invoker.current.liveTest.test.metadata.verboseTrace);
+ reason = "Actual exception trace:\n"
+ " ${chain.toString().replaceAll("\n", "\n ")}";
}
// Re-run [expect] to get the proper formatting.
« no previous file with comments | « lib/src/executable.dart ('k') | lib/src/frontend/timeout.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698