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>
This commit is contained in:
Markus Mohrhard
2016-12-21 14:36:31 +01:00
parent d19307846e
commit 5a61fa1c9e

View File

@@ -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()