diff options
Diffstat (limited to 'vcl/source/uitest/uiobject.cxx')
-rw-r--r-- | vcl/source/uitest/uiobject.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx index 2f4604d9f882..c7c64f8c9189 100644 --- a/vcl/source/uitest/uiobject.cxx +++ b/vcl/source/uitest/uiobject.cxx @@ -944,7 +944,13 @@ OUString ListBoxUIObject::get_action(VclEventId nEvent) const if (nEvent == VclEventId::ListboxSelect) { sal_Int32 nPos = mxListBox->GetSelectedEntryPos(); - return "Action on element: " + mxListBox->get_id() + " with action : SELECT and content {\"POS\": \"" + OUString::number(nPos) + "\"}"; + return this->get_type() + " Action:SELECT Id:" + mxListBox->get_id() + + " POS:" + OUString::number(nPos) + " Parent:" + get_top_parent(mxListBox)->get_id(); + } + else if (nEvent == VclEventId::ListboxFocus) + { + return this->get_type() + " Action:FOCUS Id:" + mxListBox->get_id() + + " Parent:" + get_top_parent(mxListBox)->get_id(); } else return WindowUIObject::get_action(nEvent); |