[Libreoffice-commits] core.git: 2 commits - uitest/writer_tests vcl/source

Markus Mohrhard markus.mohrhard at googlemail.com
Mon Feb 27 09:46:03 UTC 2017


 uitest/writer_tests/tdf79236.py |    2 +-
 vcl/source/uitest/uitest.cxx    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 418a0aec0074749e30071c5ac735829acb15134e
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Mon Feb 27 04:10:03 2017 +0100

    uitest: execute commands in synchronous mode
    
    Change-Id: I88ccbc63a02a8a873419874d220b94cf23c46e88
    Reviewed-on: https://gerrit.libreoffice.org/34673
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/vcl/source/uitest/uitest.cxx b/vcl/source/uitest/uitest.cxx
index 4484975..4132018 100644
--- a/vcl/source/uitest/uitest.cxx
+++ b/vcl/source/uitest/uitest.cxx
@@ -20,7 +20,7 @@ void UITest::executeCommand(const OUString& rCommand)
 {
     bool bSuccess = comphelper::dispatchCommand(
         rCommand,
-        {{"SynchronMode", -1, css::uno::Any(false),
+        {{"SynchronMode", -1, css::uno::Any(true),
           css::beans::PropertyState_DIRECT_VALUE}});
 
     SAL_WARN_IF(!bSuccess, "vcl.uitest", "failed to execute command: " << rCommand);
commit 42122e1e59718bec549e63f4b073aa1821182d71
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Mon Feb 27 04:09:10 2017 +0100

    uitest: use correct method to close a dialog
    
    Change-Id: Ib62cc9465bb874d48b4e294a6f18d98de04a5518
    Reviewed-on: https://gerrit.libreoffice.org/34672
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/uitest/writer_tests/tdf79236.py b/uitest/writer_tests/tdf79236.py
index 10e9b74..8585e48 100644
--- a/uitest/writer_tests/tdf79236.py
+++ b/uitest/writer_tests/tdf79236.py
@@ -93,7 +93,7 @@ class tdf79236(UITestCase):
             xTopSpnBtn.executeAction("DOWN", tuple())
 
         xOkBtn = xParagraphDlg.getChild("ok")
-        xOkBtn.executeAction("CLICK", tuple())
+        self.ui_test.close_dialog_through_button(xOkBtn)
 
         self.assertEqual(document.CurrentSelection.getByIndex(0).ParaLeftMargin, 0)
         self.assertEqual(document.CurrentSelection.getByIndex(0).ParaRightMargin, 0)


More information about the Libreoffice-commits mailing list