diff options
Diffstat (limited to 'vcl/source/uitest/uitest.cxx')
-rw-r--r-- | vcl/source/uitest/uitest.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/vcl/source/uitest/uitest.cxx b/vcl/source/uitest/uitest.cxx index 1058ecefb956..086adfab0537 100644 --- a/vcl/source/uitest/uitest.cxx +++ b/vcl/source/uitest/uitest.cxx @@ -17,24 +17,20 @@ #include <comphelper/dispatchcommand.hxx> -void UITest::executeCommand(const OUString& rCommand) +bool UITest::executeCommand(const OUString& rCommand) { - bool bSuccess = comphelper::dispatchCommand( + return comphelper::dispatchCommand( rCommand, {{"SynchronMode", -1, css::uno::Any(true), css::beans::PropertyState_DIRECT_VALUE}}); - - SAL_WARN_IF(!bSuccess, "vcl.uitest", "failed to execute command: " << rCommand); } -void UITest::executeDialog(const OUString& rCommand) +bool UITest::executeDialog(const OUString& rCommand) { - bool bSuccess = comphelper::dispatchCommand( + return 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() |