summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorSaurav Chirania <saurav.chir@gmail.com>2018-05-28 10:12:40 +0530
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-06-03 17:09:30 +0200
commit06f819baaaf615d4d02e3c0838513c3544389024 (patch)
treeb741ebb26314b663465ff79e6ef4f25fb911b98a /vcl
parent1a91d1a5956e16080af3f64c1597387dd57b9570 (diff)
uitest logger: ListboxSelect and ListboxFocus logging
Change-Id: I5a38adaeea3c2e64366563bd449d8bf06d9161a3 Reviewed-on: https://gerrit.libreoffice.org/55112 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/uitest/uiobject.cxx8
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);