From cbd04e955e8578ec489fdc721a13e8ecc6ee6304 Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Wed, 17 Jun 2015 17:47:55 +0300 Subject: [PATCH] write in text-field only if test fails --- apps/tests/app/mainPage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/tests/app/mainPage.ts b/apps/tests/app/mainPage.ts index e49d9b51b..d7be1412c 100644 --- a/apps/tests/app/mainPage.ts +++ b/apps/tests/app/mainPage.ts @@ -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; }