mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00
write in text-field only if test fails
This commit is contained in:
@ -7,7 +7,7 @@ import textViewModule = require("ui/text-view");
|
|||||||
|
|
||||||
class MyTraceWriter implements trace.TraceWriter {
|
class MyTraceWriter implements trace.TraceWriter {
|
||||||
public write(message: any, category: string) {
|
public write(message: any, category: string) {
|
||||||
if (textView) {
|
if (textView && message && message.toLowerCase().indexOf("failed") !== -1) {
|
||||||
if (textView.android) {
|
if (textView.android) {
|
||||||
textView.text = message + "\r\n" + textView.text;
|
textView.text = message + "\r\n" + textView.text;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user