[Libreoffice-commits] core.git: svtools/source

Markus Mohrhard markus.mohrhard at googlemail.com
Sun Jan 7 14:09:01 UTC 2018


 svtools/source/uitest/uiobject.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 5055134598ea29e687ce86c3252bedded24f8c3a
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sun Jan 7 13:46:43 2018 +0100

    uitest: support selecting and deselecting of tree list entries
    
    Change-Id: I686b913c31a7851607966347cccdf718628a8568
    Reviewed-on: https://gerrit.libreoffice.org/47528
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/svtools/source/uitest/uiobject.cxx b/svtools/source/uitest/uiobject.cxx
index b8fb2fc5fdc7..327f107f5f66 100644
--- a/svtools/source/uitest/uiobject.cxx
+++ b/svtools/source/uitest/uiobject.cxx
@@ -117,6 +117,14 @@ void TreeListEntryUIObject::execute(const OUString& rAction, const StringMap& /*
     {
         mxTreeList->Expand(mpEntry);
     }
+    else if (rAction == "SELECT")
+    {
+        mxTreeList->Select(mpEntry);
+    }
+    else if (rAction == "DESELECT")
+    {
+        mxTreeList->Select(mpEntry, false);
+    }
     else if (rAction == "CLICK")
     {
         if (!isCheckBoxList(mxTreeList))


More information about the Libreoffice-commits mailing list