sc/qa/uitest/autofilter/tdf97340.py |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

New commits:
commit 7a21b3f098a09e498e7d79f07d3b65463a0d0913
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Mon Jun 8 18:30:07 2020 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Tue Jun 9 10:00:59 2020 +0200

    tdf#133785: sc: Add UItest
    
    Change-Id: I82d742f8139f1572d31201d0d0a5553476aadf25
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95852
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Tested-by: Jenkins

diff --git a/sc/qa/uitest/autofilter/tdf97340.py 
b/sc/qa/uitest/autofilter/tdf97340.py
index 237ed71178ba..4bde1eab7cab 100644
--- a/sc/qa/uitest/autofilter/tdf97340.py
+++ b/sc/qa/uitest/autofilter/tdf97340.py
@@ -30,9 +30,23 @@ class tdf97340(UITestCase):
 
         gridwin.executeAction("LAUNCH", mkPropertyValues({"AUTOFILTER": "", 
"COL": "0", "ROW": "0"}))
         xFloatWindow = self.xUITest.getFloatWindow()
+
+        xCheckListMenu = xFloatWindow.getChild("check_list_menu")
+        xTreeList = xCheckListMenu.getChild("check_list_box")
+        self.assertEqual(2, len(xTreeList.getChildren()))
+        self.assertEqual("2016", 
get_state_as_dict(xTreeList.getChild('0'))['Text'])
+        self.assertEqual("2017", 
get_state_as_dict(xTreeList.getChild('1'))['Text'])
+
         xsearchEdit = xFloatWindow.getChild("search_edit")
         xsearchEdit.executeAction("TYPE", mkPropertyValues({"TEXT":" "}))
+        self.assertEqual(0, len(xTreeList.getChildren()))
+
         xsearchEdit.executeAction("TYPE", mkPropertyValues({"KEYCODE": 
"BACKSPACE"}))
 
+        #tdf#133785, without the fix in place, it would have been 0
+        self.assertEqual(2, len(xTreeList.getChildren()))
+        self.assertEqual("2016", 
get_state_as_dict(xTreeList.getChild('0'))['Text'])
+        self.assertEqual("2017", 
get_state_as_dict(xTreeList.getChild('1'))['Text'])
+
         self.ui_test.close_doc()
 # vim: set shiftwidth=4 softtabstop=4 expandtab:
\ No newline at end of file
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to