write in text-field only if test fails

This commit is contained in:
Vladimir Enchev
2015-06-17 17:47:55 +03:00
parent 7c5d1011cb
commit cbd04e955e

View File

@ -7,7 +7,7 @@ import textViewModule = require("ui/text-view");
class MyTraceWriter implements trace.TraceWriter {
public write(message: any, category: string) {
if (textView) {
if (textView && message && message.toLowerCase().indexOf("failed") !== -1) {
if (textView.android) {
textView.text = message + "\r\n" + textView.text;
}