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

Unified Diff: lib/src/testing.dart

Issue 1228063003: fix for 1.12.0-dev SDK and 0.25.1 analyzer breaking changes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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: lib/src/testing.dart
diff --git a/lib/src/testing.dart b/lib/src/testing.dart
index 8ad61311fe2c6b754cd53034cb30d495cdf56416..877570bbee21c9193208e1e4bfcd9a988822c8aa 100644
--- a/lib/src/testing.dart
+++ b/lib/src/testing.dart
@@ -205,7 +205,7 @@ class _ExpectedErrorVisitor extends UnifyingAstVisitor {
var span = _createSpan(actual.offset, actual.length);
var levelName = _actualErrorLevel(actual).name.toLowerCase();
var msg = span.message(actual.message, color: colorOf(levelName));
- return '$levelName: $msg';
+ return '$levelName: [${actual.errorCode.name}] $msg';
Jennifer Messerly 2015/07/09 17:03:29 makes it easier to debug
}
SourceSpan _createSpan(int offset, int len) {

Powered by Google App Engine
This is Rietveld 408576698