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

Unified Diff: tests/utils/recursive_import_test.dart

Issue 368983003: Add better error reporting to utils tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « tests/utils/dummy_compiler_test.dart ('k') | tests/utils/source_mirrors_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/utils/recursive_import_test.dart
diff --git a/tests/utils/recursive_import_test.dart b/tests/utils/recursive_import_test.dart
index c1815e82d671348a5a0a353266aa017bde5921e2..550b352c927b07f00d66080d0a1a81d5a522e3ad 100644
--- a/tests/utils/recursive_import_test.dart
+++ b/tests/utils/recursive_import_test.dart
@@ -39,7 +39,7 @@ main() {
int errorCount = 0;
void handler(Uri uri, int begin, int end, String message, Diagnostic kind) {
if (uri != null) {
- // print('$uri:$begin:$end: $kind: $message');
+ print('$uri:$begin:$end: $kind: $message');
Expect.equals('main', uri.scheme);
if (kind == Diagnostic.WARNING) {
warningCount++;
@@ -48,6 +48,8 @@ main() {
} else {
throw kind;
}
+ } else {
+ print('$kind: $message');
}
}
@@ -64,7 +66,7 @@ main() {
// first time.
Expect.equals(2 * (count - 1), warningCount);
Expect.equals(1, errorCount);
- }, onError: (e) {
- throw 'Compilation failed';
+ }, onError: (e, s) {
+ throw 'Compilation failed: $e\n$s';
}).then(asyncSuccess);
}
« no previous file with comments | « tests/utils/dummy_compiler_test.dart ('k') | tests/utils/source_mirrors_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698