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

Unified Diff: pkg/unittest/lib/compact_vm_config.dart

Issue 18892003: Roll forward "Use package:stack_trace in unittest." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge head. Created 7 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
« no previous file with comments | « no previous file | pkg/unittest/lib/html_config.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/compact_vm_config.dart
diff --git a/pkg/unittest/lib/compact_vm_config.dart b/pkg/unittest/lib/compact_vm_config.dart
index b2bbc59bad43a9f19ac83b7deeaf2b2d2375dc8c..3658ef46e604c3b96d6fa08cb70ad7b81c374edc 100644
--- a/pkg/unittest/lib/compact_vm_config.dart
+++ b/pkg/unittest/lib/compact_vm_config.dart
@@ -14,6 +14,7 @@ import 'dart:async';
import 'dart:io';
import 'unittest.dart';
+import 'src/utils.dart';
import 'vm_config.dart';
const String _GREEN = '\u001b[32m';
@@ -51,11 +52,11 @@ class CompactVMConfiguration extends VMConfiguration {
_progressLine(_start, _pass, _fail, test.description);
print('');
if (test.message != '') {
- print(_indent(test.message));
+ print(indent(test.message));
}
- if (test.stackTrace != null && test.stackTrace != '') {
- print(_indent(test.stackTrace));
+ if (test.stackTrace != null) {
+ print(indent(test.stackTrace.toString()));
}
}
}
@@ -68,10 +69,6 @@ class CompactVMConfiguration extends VMConfiguration {
});
}
- String _indent(String str) {
- return str.split("\n").map((line) => " $line").join("\n");
- }
-
void onSummary(int passed, int failed, int errors, List<TestCase> results,
String uncaughtError) {
var success = false;
« no previous file with comments | « no previous file | pkg/unittest/lib/html_config.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698