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 64b2021a627c0178e39a403f79b20e0fccbf82fb..97c120a3e08d95fac6afa97562900735590516e5 100644 |
--- a/pkg/unittest/lib/compact_vm_config.dart |
+++ b/pkg/unittest/lib/compact_vm_config.dart |
@@ -15,6 +15,7 @@ import 'dart:io'; |
import 'dart:isolate'; |
import 'unittest.dart'; |
+import 'src/utils.dart'; |
import 'vm_config.dart'; |
const String _GREEN = '\u001b[32m'; |
@@ -57,11 +58,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())); |
} |
} |
} |
@@ -75,10 +76,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; |