[Libreoffice-commits] core.git: vcl/source
Saurav Chirania
saurav.chir at gmail.com
Sun Jun 24 21:35:48 UTC 2018
vcl/source/uitest/uiobject.cxx | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
New commits:
commit cb7e2b80022928b80a27fc6d71ff0721dbe6f601
Author: Saurav Chirania <saurav.chir at gmail.com>
Date: Fri Jun 22 20:46:34 2018 +0530
uitest logger: some changes in log statements
These changes will allow the interpreter introduced in
gerrit change number 56120
to understand these log statements.
Change-Id: I68a406cd19bbe1cfe5b6563025348263d564d5af
Reviewed-on: https://gerrit.libreoffice.org/56305
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx
index e5ac0895dea8..b098205470eb 100644
--- a/vcl/source/uitest/uiobject.cxx
+++ b/vcl/source/uitest/uiobject.cxx
@@ -951,7 +951,8 @@ OUString ListBoxUIObject::get_action(VclEventId nEvent) const
{
sal_Int32 nPos = mxListBox->GetSelectedEntryPos();
return this->get_type() + " Action:SELECT Id:" + mxListBox->get_id() +
- " POS:" + OUString::number(nPos) + " Parent:" + get_top_parent(mxListBox)->get_id();
+ " Parent:" + get_top_parent(mxListBox)->get_id() +
+ " {\"POS\": \"" + OUString::number(nPos) + "\"}";
}
else if (nEvent == VclEventId::ListboxFocus)
{
@@ -1026,8 +1027,9 @@ OUString ComboBoxUIObject::get_action(VclEventId nEvent) const
{
sal_Int32 nPos = mxComboBox->GetSelectedEntryPos();
return this->get_type() + " Action:SELECT Id:" +
- mxComboBox->get_id() + " POS:" + OUString::number(nPos) +
- " Parent:" + get_top_parent(mxComboBox)->get_id();
+ mxComboBox->get_id() +
+ " Parent:" + get_top_parent(mxComboBox)->get_id() +
+ " {\"POS\": \"" + OUString::number(nPos) + "\"}";
}
else
return WindowUIObject::get_action(nEvent);
@@ -1177,8 +1179,8 @@ OUString TabControlUIObject::get_action(VclEventId nEvent) const
{
sal_Int32 nPageId = mxTabControl->GetCurPageId();
return this->get_type() + " Action:SELECT Id:" + mxTabControl->get_id() +
- " POS:" + OUString::number(mxTabControl->GetPagePos(nPageId)) +
- " Parent:" + get_top_parent(mxTabControl)->get_id();
+ " Parent:" + get_top_parent(mxTabControl)->get_id() +
+ " {\"POS\": \"" + OUString::number(mxTabControl->GetPagePos(nPageId)) + "\"}";
}
else
return WindowUIObject::get_action(nEvent);
More information about the Libreoffice-commits
mailing list