mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +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 {
|
||||
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user