summaryrefslogtreecommitdiff
path: root/vcl/source/uitest/uitest.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-02-27 04:04:26 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-02-27 09:43:45 +0000
commitaa10a19c8e56a51654bcb26f718f6e7187159c72 (patch)
tree4b9940918dbdc052cd2fa045404a1a2a0ebfffa3 /vcl/source/uitest/uitest.cxx
parent2a285790535c0ae4c2d791c8f8c44038203d82b7 (diff)
uitest: add a specific method for executing dialogs
This allows us to split the parts that need to run async and the ones that can run synchronous. This will reduce the number of signals that we need. Change-Id: I9c9f3df3422cc66d28d66e0638e212b39c743e33 Reviewed-on: https://gerrit.libreoffice.org/34669 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'vcl/source/uitest/uitest.cxx')
-rw-r--r--vcl/source/uitest/uitest.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/vcl/source/uitest/uitest.cxx b/vcl/source/uitest/uitest.cxx
index d8764790f9e6..4484975c44f9 100644
--- a/vcl/source/uitest/uitest.cxx
+++ b/vcl/source/uitest/uitest.cxx
@@ -26,6 +26,16 @@ void UITest::executeCommand(const OUString& rCommand)
SAL_WARN_IF(!bSuccess, "vcl.uitest", "failed to execute command: " << rCommand);
}
+void UITest::executeDialog(const OUString& rCommand)
+{
+ bool bSuccess = comphelper::dispatchCommand(
+ rCommand,
+ {{"SynchronMode", -1, css::uno::Any(false),
+ css::beans::PropertyState_DIRECT_VALUE}});
+
+ SAL_WARN_IF(!bSuccess, "vcl.uitest", "failed to execute dialog command: " << rCommand);
+}
+
std::unique_ptr<UIObject> UITest::getFocusTopWindow()
{
ImplSVData* pSVData = ImplGetSVData();