summaryrefslogtreecommitdiff
path: root/vcl/source/uitest
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-21 19:40:00 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-21 21:30:45 +0000
commitcaf208166c01519f090ee88b1ddff809ed199007 (patch)
tree9103340764f1cb90eb2f828e3e8faaab5064b5ec /vcl/source/uitest
parent05101670aa885bf3c3972c9f75f8003c06837ff7 (diff)
uitest: better support for listbox logging
Change-Id: Ibd2625ba40cafdb07a2fcb5b2cfdd0e5f9e72b94 Reviewed-on: https://gerrit.libreoffice.org/35516 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'vcl/source/uitest')
-rw-r--r--vcl/source/uitest/uiobject.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx
index f89ba6d0238b..561688861481 100644
--- a/vcl/source/uitest/uiobject.cxx
+++ b/vcl/source/uitest/uiobject.cxx
@@ -814,6 +814,17 @@ OUString ListBoxUIObject::get_name() const
return OUString("ListBoxUIObject");
}
+OUString ListBoxUIObject::get_action(VclEventId nEvent) const
+{
+ if (nEvent == VclEventId::ListboxSelect)
+ {
+ sal_Int32 nPos = mxListBox->GetSelectEntryPos();
+ return "Action on element: " + mxListBox->get_id() + " with action : SELECT and content {\"POS\": \"" + OUString::number(nPos) + "\"}";
+ }
+ else
+ return WindowUIObject::get_action(nEvent);
+}
+
std::unique_ptr<UIObject> ListBoxUIObject::create(vcl::Window* pWindow)
{
ListBox* pListBox = dynamic_cast<ListBox*>(pWindow);