summaryrefslogtreecommitdiff
path: root/vcl/source/uitest
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-21 14:36:31 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-21 16:01:09 +0000
commit5a61fa1c9ee33e4616ec7277ecf2b3110c0e4589 (patch)
tree86b678539d65b6f792e06e2229d0fa3d7c420150 /vcl/source/uitest
parentd19307846e6e360aacdec7fc81e3a923d387d1d2 (diff)
uitest: handle typing in a combobox correctly with sub edits
Change-Id: I20ad39075601deef36122f065ddfec8bd63dc1fe Reviewed-on: https://gerrit.libreoffice.org/32282 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.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx
index 0aff1e08f08c..d5b1d7082787 100644
--- a/vcl/source/uitest/uiobject.cxx
+++ b/vcl/source/uitest/uiobject.cxx
@@ -799,6 +799,19 @@ void ComboBoxUIObject::execute(const OUString& rAction,
}
mxComboBox->Select();
}
+ else if (rAction == "TYPE")
+ {
+ if (mxComboBox->GetSubEdit())
+ {
+ Edit* pEdit = mxComboBox->GetSubEdit();
+ std::unique_ptr<UIObject> pObj = EditUIObject::create(pEdit);
+ pObj->execute(rAction, rParameters);
+ }
+ else
+ WindowUIObject::execute(rAction, rParameters);
+ }
+ else
+ WindowUIObject::execute(rAction, rParameters);
}
StringMap ComboBoxUIObject::get_state()